C Programming Quizzes Online & Trivia

A comprehensive database of more than 84 c programming quizzes online, test your knowledge with c programming quiz questions. Our online c programming trivia quizzes can be adapted to suit your requirements for taking some of the top c programming quizzes.

"Hello World!"... For programmers this is quite possibly their very first program. Are you a hardcore programmer? What did your first program execute? We have an "array" of quizzes about old school programming; that's C programming. How well versed are you with one of the most widely used programming languages of all time? Can you deal with some basic syntax and semantics? How about trying to guess what the output of a short C program will be?

Do you have any background on memory management? Before all those object oriented programs, there was the C programming language. It's back to basics when you take on our quizzes. What are you waiting for? Go and "printf" your answers now! We'll can "scanf" them and see how much you really know about the C programming language!

Related Topics


  • #include <stdio.h> int main() {     int x = 10;     int y = 20;     x += y += 10;     printf ( %d %d, x, y);     return 0; }
    C programming question from

  • #include<stdio.h>  int main(void)  {    int a = 1;    int b = 0;    b = a++ + a++;    printf(%d %d,a,b);    return 0;  }  
    C programming question from

  • #include <stdio.h> int main() { int x = 10; int y = (x++, x++, x++); printf(%d %d\n, x, y); return 0; }
    C programming question from

  • Pick up the right alternative void main() { int const * p=5; printf("%d",++(*p)); }
    C programming question from

  • Pick up the right alternative main() { extern int i; i=20; printf("%d",i); }
    C programming question from

  • Pick up the right alternative main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
    C programming question from

  • Point out the error, if any in the for loop #include int main() { int i=1; for(;;) { printf("%d\n", i++); if(i>10) break; } return 0; }
    C programming question from

  • Pick the right alternative main() { int c=- -2; while(--c) printf("c=%d",c); }
    C programming question from

  • What will be the output? main() { char s[ ]="m"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }
    C programming question from

  • What is the output? main() { char val[] = {‘a’,’b’,’c’,’\n’,’c’,’\0’}; char *p, *val1, *val2; p = &val[3]; val1 = val; val2 = val; printf(“%d”, ++*p + ++*val1 – 32); }
    C programming question from

  • What is the output? main() { char *arr = “abc defg”, *x; x = arr; while( *arr != ‘\0’ ) ++*arr++; printf(“%s %s”,arr,x); }
    C programming question from

  • What is the output? main() { char far *ptr1, *ptr2; printf(“%d %d”,sizeof(ptr1),sizeof(ptr2)); }
    C programming question from