C Interview Questions And Quiz Tutorials

C Interview Questions 1-10

Hi friends, When i tried to get a job, Maximum I was rejected because of “C” questions. After i completed some interviews, I read lot of “Aptitute Questions based on C”. I posted here all the objective type c qustions What i have now. It may helpful to clear your interview for next level. It contains c aptitude, c quiz, c object type of questions. Try to learn c to […]... Read More »

C Interview Questions 11-20

This post contains 11-20 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.11-20 QuestionsQ1: void main() { int i=5; printf("%d",i+++++i); } Answer: Compiler Error Q2: #include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } } Answer: Compiler Error: Constant expression required in function main. Q3: main() { int i; printf("%d",scanf("%d",&i)); […]... Read More »

C Interview Questions 21-30

This post contains 21-30 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.21-30 QuestionsQ1: #include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); } Answer: Compiler error Q2: main() { int i=5,j=6,z; printf("%d",i+++j); } Answer: 11 Q3: main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); } Answer: 0..0 Q4: int […]... Read More »

C Interview Questions 31-40

This post contains 31-40 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.31-40 QuestionsQ1: The expression 4+6/3*2-2+7%3 evaluates to a) 3 b) 4 c) 6 d) 7 Answer: Q2: Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above Answer: Q3: Using […]... Read More »

C Interview Questions 41-50

This post contains 41-50 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.41-50 QuestionsQ1: #include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); } Answer: 50 Q2: #define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); } Answer: 100 Q3: main() { clrscr(); } clrscr(); Answer: No output/error Q4: main() { int i=1; while (i<=5) { printf("%d",i); […]... Read More »

C Interview Questions 51-60

This post contains 51-60 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.51-60 QuestionsQ1: int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } Answer: 30,20,10 Q2: #include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); } Answer: garbagevalue..1 Q3: […]... Read More »

C Interview Questions 61-70

This post contains 61-70 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.61-70 QuestionsQ1: void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); } Answer: Ok here Q2: main() { clrscr(); } clrscr(); Answer: No output/error Q3: main() { static int var = 5; printf("%d ",var--); if(var) main(); } Answer: 5 4 […]... Read More »

C Interview Questions 71-80

This post contains 71-80 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.71-80 QuestionsQ1: If a two dimensional array is used as a formal parameter, then a) both the subscripts may be left empty b) the first( row) subscript may be left empty c) the first subscript must be left empty d) both the subscripts must be […]... Read More »

C Interview Questions 81-90

This post contains 81-90 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.81-90 QuestionsQ1: main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); } Answer: Compiler error: Lvalue required in function main Q2: #include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); } Answer: M Q3: main( […]... Read More »

C Interview Questions 91-100

This post contains 91-100 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.91-100 QuestionsQ1: main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); } Answer: 2 5 5 Q2: main() { int *j; { int i=10; j=&i; } printf("%d",*j); } Answer: 10 Q3: void main() { int const * p=5; printf("%d",++(*p)); } Answer: Compiler error: Cannot modify […]... Read More »