Loading, please wait...

C Programming Multiple Choice Questions And Answers

Search here for MCQs

C evolved from two previous languages, BCPL and B. BCPL was developed in 1967 by Martin Richards as a language for writing operating systems software and compilers. Ken Thompson modeled many features in his B language after their counterparts in BCPL and used B to create early versions of the UNIX operating system. The C language was evolved from B by Dennis Ritchie at Bell Laboratories. C uses many of the important concepts of BCPL and B while adding data typing and other powerful features. C initially became widely known as the development language of the UNIX operating system. C is available for most computers. C is mostly hardware independent.

The publication in 1978 of Kernighan and Ritchie’s book, “The C Programming Language”, enthralled to the language. In 1989, the C standard was approved; this standard was updated in 1999. C99 is a revised standard for the C programming language that refines and expands the capabilities of C, but it has not be universally adopted. It means Not all popular C compilers support C99.Here you will get C Programming Multiple Choice Questions And Answers for you next job or exam

C Programming Multiple Choice Questions And Answers

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

1. Short int means

  • Qualifier
  • Short is the qualifier and int is the basic data type
  • data type
  • All of the above

2. Who invented C- langauge?

  • James Gausling
  • Guido Van Rossum
  • Dennis Ritchie
  • Bjarne Stroustrup

3. Find out the Output

int main() { unsigned int i=65000; while ( i++ != 0 ); printf("%d",i); return 0; }
  • Output: 1
  • Output: 2
  • Output: 0
  • Error

4. User-defined data type

  • typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
  • struct {char name[10], int age};
  • typedef int Boolean;
  • All of the above

5. Find out the Output

#include int main() { int i; #if A printf("Enter any number:"); scanf("%d", &i); #elif B printf("The number is odd"); return 0; }
  • Garbage values
  • The number is odd
  • Error: unexpected end of file because there is no matching #endif
  • None of the above