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

5
Bcz 2+1*2+1=5

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2124


Explain how do you determine a file’s attributes?

596


Why do we use stdio h and conio h?

640


formula to convert 2500mmh2o into m3/hr

501


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1788






What is structure padding and packing in c?

626


Compare interpreters and compilers.

642


What is omp_num_threads?

587


How do you list files in a directory?

566


Explain how to reverse singly link list.

609


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

667


Write a program in c to replace any vowel in a string with z?

699


What is const volatile variable in c?

581


What is call by value in c?

562


What is c language & why it is used?

585