C Fundamentals Test Quiz On C Language Fundamentals

  • UNIX

Explanation:

The C programming language was created for the purpose of building an operating system known as UNIX. By the year 1973, the entire UNIX operating system was constructed using C.

2) The C compiler used for UNIX operating system is

  • vc++
  • Borland

Explanation:

The 'cc' compiler is commonly utilized for UNIX systems, where it stands for C compiler. On the other hand, gcc is the preferred compiler for Linux environments. For Windows, developers often rely on compilers such as Borland and vc++.

3) Which of the following is a logical AND operator?

  • None of the above

Explanation:

The && operator is known as the logical AND operator. When both operands have values other than zero, the condition evaluates to true.

The || operator is known as the logical OR operator. When either of the two operands is non-zero, the condition evaluates to true.

The exclamation mark is referred to as the logical NOT operator, which serves to invert the logical state of the operand.

4) Which format specifier is used for printing double value?

  • None of the above

Explanation:

The %lf format specifier is employed to display the double value in a C program.

5) Which of the following statement is used to free the allocated memory space for a program?

  • vanish(var-name);
  • remove(var-name);
  • erase(var-name);
  • free(var-name);

Explanation:

The memory reserved by functions like malloc, calloc, or realloc is released by calling the free(var-name) function provided by the library.

Input Required

This code uses input(). Please provide values below: