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); }
Z
90
Garbage value
Error
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
K
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 }
10..10
10..50
Error
0
Description:

A sample test for testing your C programming Skills

Discussion

Mavchi Honak

setup an internet connection and share this connection using proxy server with limited service that is only HTTP and FTP.

41 days 2 hours 28 minutes ago

Mavchi Honak

write a c programe to show weekday when input 1 show Monday 2 tuesday as sgiw on using the switch statement

41 days 2 hours 30 minutes ago

মোরশেদ সোহাগ

// returns the number of digits in n.
static int length(int n) {
int numDigits = 0;
while (n > 0) { // Assumes n is >= 0
numDigits++;
n = n / 10;
}
if (numDigits == 0) {
numDigits = 1;
}
return numDigits;
}

// returns the nth digit of number. RightmoSee more

48 days 5 hours 9 minutes ago

Akbond

last question will coz type mismatch error..so answer shud b error

93 days 1 hours 10 minutes ago

sanjeet kumar

All answers r right

932 days 22 hours 31 minutes ago

asif patel

nfdbnskfnd dbfsdbfsd f d f f dfn fnm.fkldkljioermsajfkjenrjtne ghuiher ewrwenerj bdn bfdbfdn f dn dfberhr fnfndfaaldbfrmeea=ra====meera kaise ho

939 days 3 hours 2 minutes ago

vajid mulla

m,opgvfy

946 days 2 hours 15 minutes ago

vajid mulla

nmhkyvflufy

946 days 2 hours 15 minutes ago

manish patel

gud......

968 days 5 hours 16 minutes ago

satishvaka

not sufficient .i want some more questions

969 days 19 hours 25 minutes ago

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

Your Facebook Friends on WizIQ

More Tests By Author

Asp.net Online Tests
6 Questions | 6584 Attempts

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

Asp.Net 2.0
5 Questions | 3244 Attempts

Test your Computer Knowledge 2
26 Questions | 4078 Attempts