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

Kumari

write a program to reverse a string

16 days 14 hours 37 minutes ago

Abdur Razzak Shuvo

write a program that prints sum=x1+x2+x3+.....+xn with c

43 days 19 hours ago

Dotnet Dotnetsql

Found a site (http://www.iheadgo.com) that offers tons of practice exams for multiple subjects. They offer practice exams for almost anything possible. Check it out.
Checking out this site and looks interesting...a lot of different Exams TI.
http://www.iheadgo.com

48 days 9 hours 15 minutes ago

Jestin

to print the following sequence
a
ab
abc
abcd

55 days 17 hours 21 minutes ago

Priyabrata Rath

Required libraries should be completely specified, like #include<stdio.h> or any other. Those statements should not be left blank. 2 such questions confused me and got me commit mistakes.

75 days 7 hours 52 minutes ago

Davit Jibuti

in 5 test, there is no prototype of function "foo()" so for main function it's not famous. the code should return errors. and the correct answer is "Error"

114 days 11 hours 52 minutes ago

Anisha Sahu

kindly explain the reasons for the answers so that we can learn y it happnd so... otherwise these tests will b of no use. so kindly give the explanations keeping learners in mind. so that we can improve conceptually

117 days 14 hours 1 minutes ago

Govind Negi

1. Write a program to implement a stack which contains the address of the pointers for allocation of memory. Do the pop operation on stack and free the popped pointers.

159 days 16 hours 58 minutes ago

Mavchi Honak

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

223 days 22 hours 29 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

223 days 22 hours 30 minutes ago

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

Your Facebook Friends on WizIQ

More Tests By Author

Asp.net Online Tests
6 Questions | 7184 Attempts

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

Asp.Net 2.0
5 Questions | 3338 Attempts