c mcqs with answers
C Programming Questions and Answers – Size of Keyword
C Programming Questions and Answers – Size of Keyword 1.What is the sizeof(char) in a 32-bit C compiler? a)1…
Read More »C Programming Questions and Answers – Float Datatype
C Programming Questions and Answers – Float Datatype 1.The number of digits present after decimal in float is________. a)1…
Read More »C Programming Questions and Answers – Random Number Generation
C Programming Questions and Answers – Random Number Generation 1.The function srand(unsigned) a) Sets the seed for rand b)…
Read More »C Programming Questions and Answers – Mathematical Functions
C Programming Questions and Answers – Mathematical Functions 1.What is the output of this C code? #include <stdio.h> #include…
Read More »C Programming Questions and Answers – Storage Management
C Programming Questions and Answers – Storage Management 1.The function ____ obtains block of memory dynamically. a) calloc b)…
Read More »C Programming Questions and Answers – Ungetc
C Programming Questions and Answers – Ungetc 1.ungetc can be used only with getc. a) true b) false c)…
Read More »C Programming Questions and Answers – Character Class Testing & Conversions
C Programming Questions and Answers – Character Class Testing & Conversions 1.Which of the following library function is not…
Read More »C Programming Questions and Answers – String Operations
C Programming Questions and Answers – String Operations 1.What is the output of this C code? #include <stdio.h> int…
Read More »C Programming Questions and Answers – Line Input & Output
C Programming Questions and Answers – Line Input & Output 1.The syntax of fgets is char *fgets(char *line, int…
Read More »C Programming Questions and Answers – Error Handling
C Programming Questions and Answers – Error Handling 1.What is the output of this C code if there is…
Read More »