#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

Write a program to generate random numbers in c?

658


What is string constants?

653


What are types of functions?

557


What is #line in c?

554


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

639






Why we write conio h in c?

553


List some basic data types in c?

555


What is #error and use of it?

670


what are enumerations in C

718


What is a function simple definition?

608


When a c file is executed there are many files that are automatically opened what are they files?

587


Explain union. What are its advantages?

611


What is cohesion in c?

534


Differentiate between ordinary variable and pointer in c.

611


Is linux written in c?

594