#include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}

What is the value of x?

Answer Posted / guest

i tried in pc the ans is 5

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

706


Why use int main instead of void main?

599


What are the advantages of c preprocessor?

714


i have a written test for microland please give me test pattern

2184


if p is a string contained in a string?

1406






What are the scope of static variables?

601


What does char * * argv mean in c?

625


What is a file descriptor in c?

563


What does the function toupper() do?

658


Is it cc or c in a letter?

568


What are the disadvantages of c language?

622


When should I declare a function?

623


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1674


what does static variable mean?

657


How can I do serial ("comm") port I/O?

689