Test your C Programming Skills

void main() { int a=10,b=20; char x=1,y=0; if(a,b,x,y) { printf("EXAM"); } } What is the output?
XAM is printed
exam is printed
Compiler Error
Nothing is printed
#include void main() { char letter =`Z`; printf(" %c",letter); }
Garbage value
Array passed as an argument to a function is interpreted as
Address of the array
Values of the first elements of the array
Address of the first element of the array
Number of element of the array
main() { char thought[2][30]={"Don`t walk in front of me..","I am not follow"}; printf("%c%c",*(thought[0] 9),*(*(thought 0) 5)); } What is the output of this program?
k k
int **array2 = (int **)malloc(nrows * sizeof(int *)); Don`t walk in front of me
I may not follow
What is the output of the following code? # include # define a 10 main() { printf("%d..",a); foo(); printf("%d",a); } void foo() { #undef a #define a 50 }

A sample test for testing your C programming Skills



1. Write the array to the screen. A possible call to the function is: print_array(colours[][5],5,5).
2. Multiply each of the entries in the array by a scale factor scale=2.5. A possible call to the function is: scale_array(colours[][5], 5, 5, scale).

can i have the answer of this question cause i don't understand..thank you

47 days 12 hours 38 minutes ago

Suchismita Adhikary

I didn't get the logic of the question number 5.. can you please expailn??

324 days 22 hours 28 minutes ago

Ch Shahzaib Khan

i am beginner i want to learn its basic

345 days 10 hours 17 minutes ago

Marko Cvejic

can you explain me question number 5? Thanks.

453 days 8 hours 7 minutes ago


This is a joke. Question 4 does not compile.

462 days 9 hours 8 minutes ago

Ahmed El-Barani

I am a beginner programmer ! i'd like to know what's differences b/w template and class ?

513 days 18 hours 23 minutes ago


void main()
char name[5][8];
int i=0, marks;
printf("enter student name:\n student marks:\n");
scanf("%s %d",name,marks);

please tell the output imeddetly

520 days 18 hours 38 minutes ago



520 days 18 hours 39 minutes ago

Rohini Varma

the quiz is quite interesting....but i didnot understand 4 th question..of this test...is any one there to help me in understanding the solution to that question..please comment below

521 days 15 hours 48 minutes ago

Zubair Masoodi
C# Assignment help, C# Homework help, Asp.net help, learn C# and Asp.n
3 Members Recommend

Your Facebook Friends on WizIQ

More Tests By Author

Asp.net Online Tests
6 Questions | 8141 Attempts

Asp.net online test (Microsoft Certified Technical Specialist (MCTS)
5 Questions | 18375 Attempts

Asp.Net 2.0
5 Questions | 3479 Attempts