C programming quiz questions

Post A Question

Classifications:

quiz questions Categories:

Write a C program to get the C version you are using
icon 1 answers
icon249 Views
icon0 Likes
Guess the output #include int main() { int x = 1, y = 0, z = 3; x > y ? printf("%d", z) : return z; }
icon 1 answers
icon212 Views
icon0 Likes
Find out the error #include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }
icon 1 answers
icon199 Views
icon0 Likes
How many times tutorial links are present
icon 1 answers
icon212 Views
icon0 Likes
What is the output?#include int main() { int i = 0, j = 0; if (i && (j = i + 10)) //do something ; }
icon 1 answers
icon211 Views
icon0 Likes
Assume the output #include int main() { printf("%p", main) getchar() return 0 }
icon 1 answers
icon157 Views
icon0 Likes
Find out the Output int main() { char arr[5]="The tutoriallinks.com" printf("%s",arr) return 0 }
icon 1 answers
icon157 Views
icon1 Likes
Find out the Output int main() { int a = 10.5; printf("%d",a); return 0; }
icon 1 answers
icon221 Views
icon0 Likes
Find out the error #include int main() { display(); return 0; } void display() { printf("IndiaBIX.com"); }
icon 1 answers
icon187 Views
icon0 Likes
What is the output? #include int main() { int i = 1; if (i++ && (i == 1)) printf("Yes\n"); else printf("No\n"); }
icon 1 answers
icon189 Views
icon0 Likes
Find out the Output int fun(char *str1) { char *str2 = str1; while(*++str1); return (str1-str2); } int main() { char *str = "geeksforgeeks"; printf("%d", fun(str)); getchar(); return 0; }
icon 1 answers
icon195 Views
icon0 Likes
C programming language by itself provides
icon 1 answers
icon191 Views
icon0 Likes
We can use relational operators as
icon 1 answers
icon241 Views
icon0 Likes