C Programming Quiz Questions and Answers

Who is known as the father of C Language?

Answer :
  • Dennis Ritchie

A C variable name can start with a ____

Answer :
  • Underscore

A pointer that is pointing to NOTHING is called _______.

Answer :
  • NULL Pointer

An array elements are always stored in ______ memory locations.

Answer :
  • Sequential

In switch statement, each case instance value must be ________.

Answer :
  • Constant

What is the work of break keyword?

Answer :
  • Exit from loop or switch statement

Recursive functions are executed in a?

Answer :
  • Last In First Out Order

Which of the following data structure is linear type?

Answer :
  • All of the above

What is the output?

Answer :
  • Nothing is printed

What will be the output of the following C code? int main() { int a = -1, b = 4, c = 1, d; d = ++a && ++b || ++c; printf("%d, %d, %d, %d\n", a, b, c, d); return 0; }

Answer :
  • 0, 4, 2, 1