Test Your C Programing Skill

what will be the output of the following airthmetic operation:

5+3*2%10-8*6


Macro is defined with...........keyword.


union UN

{

int x,float y;

}

what is size of union.


what will be the value of a after the following code is executed.

#define square(X) X*X

a=square(2+3)


int i=2;

printf("%d%d%d",i++,++i,i++)

output:


int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12};

what value does arr[2][1][0] in the code:


what will be the output of the following statement:

int i,j;

j=i--- -2;

printf("%d",j);


what is the output of:

printf(4+"goodnight");


int i;

for(i=1;i<=10;i++);

printf("%d",i);

what is value of i


Which declaration is a pointer to array of 3 elements


How many bytes of memory are allocated for storage of “D”


What is the type of function malloc()?


What is the default value of static variable


char c=125;

c=c+10;

printf("%c",c);

what is the value of c:


which one is not a keyword:





































Description:

c programing is a basic programing language.It is a procedured oriented or function oriented language.
it is developed by dennis ritchie in 1972 in bell lab.
c programing include data types,variables,constant,header files,control statements,functions,array(1-d and 2-D),pointers,structure and union,string(char array),preprocessor directives,operators,library and user defind functions and file handling.

Discussion

Kk

there are a few questions whose answer and options are wrong. plz correct those answer and options.see macro expansion.

1962 days 10 hours 3 minutes ago

Padmanagarajan

First find some good answers for your questions and please check it before you post it,Your options itself has some problems... Thank you!..........

2113 days 2 hours 34 minutes ago

Jyothi

answer for question 4 is 11, its 2+3*2+3,
and in Q.15 volatile is a keyword.., answer is NULL

2194 days 18 hours 34 minutes ago

Yuri

The question is: after #define Square(X) X*X a = Square(2+3) what is the value of a?
The answer in review claims it is 25. However, it should be 2+3*2+3 which is 11. Am I right?

2283 days 12 hours 42 minutes ago

3 Followers
Tests: 2

Your Facebook Friends on WizIQ

More Tests By Author

Exception Handling
15 Questions | 803 Attempts