Advertisement
Advertisement
C Quizzes, Questions & Answers
Recent C Quizzes
Questions: 30 | Attempts: 154 | Last updated: Mar 17, 2025
-
Sample QuestionWhat is the correct value to return to the operating system upon successful completion of a program in c?
Questions: 20 | Attempts: 724 | Last updated: Mar 22, 2025
-
Sample QuestionWhat is the output of the below code snippet?#include<stdio.h> main(){ int a = 5, b = 3, c = 4; printf("a = %d, b = %d\n", a, b, c);}
Questions: 30 | Attempts: 176 | Last updated: Mar 21, 2025
-
Sample QuestionWhat will be the Output of the following program ? void main(){ const char var='A'; ++var; printf("%c",var);}
Questions: 30 | Attempts: 805 | Last updated: Mar 22, 2025
-
Sample QuestionWhat will be output of following c code? #includeextern int x;int main(){ do{ do{ printf("%o",x); } while(!-2); } while(0); return 0;}int x=8;
Questions: 10 | Attempts: 230 | Last updated: Oct 16, 2025
-
Sample QuestionIn a file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets(). What will str contain?
Questions: 10 | Attempts: 944 | Last updated: Mar 21, 2025
-
Sample QuestionIn a file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets(). What will str contain?
Questions: 25 | Attempts: 1060 | Last updated: Feb 17, 2025
-
Sample QuestionWhich of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Questions: 25 | Attempts: 1188 | Last updated: Feb 17, 2025
-
Sample QuestionWhich of the following is not a valid variable name declaration?
Questions: 9 | Attempts: 175 | Last updated: Oct 1, 2025
-
Sample QuestionPredict the output of following program. Assume that the numbers are stored in 2's complement form. #include<stdio.h> int main() { unsigned int x = -1; int y = ~0; if(x == y) printf("same"); else printf("not same"); return 0; }
Questions: 10 | Attempts: 57 | Last updated: May 22, 2025
-
Sample QuestionChar str[10] = "A quick brown fox jumped over a lazy dog";puts(str);what will print?
Advertisement