#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
How can you find the exact size of a data type in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Are there any problems with performing mathematical operations on different variable types?
Explain how can you check to see whether a symbol is defined?
How pointer is different from array?
Explain indirection?
What do you understand by friend-functions? How are they used?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is the use of getch ()?
How can I direct output to the printer?
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.
Differentiate between the = symbol and == symbol?
What is meant by gets in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Are there namespaces in c?