#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 / pravin

sqrt(x+1)(x+1*x+1)
as x=2;result will be 2+1*2+1=5;
thank u

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you find the exact size of a data type in c?

601


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

603


Are there any problems with performing mathematical operations on different variable types?

575


Explain how can you check to see whether a symbol is defined?

663


How pointer is different from array?

579






Explain indirection?

646


What do you understand by friend-functions? How are they used?

645


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

631


What is the use of getch ()?

636


How can I direct output to the printer?

813


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1202


Differentiate between the = symbol and == symbol?

715


What is meant by gets in c?

609


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

2800


Are there namespaces in c?

568