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

absolutely 5

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What extern c means?

543


What are the basic data types associated with c?

818


What are near, far and huge pointers?

648


Why can arithmetic operations not be performed on void pointers?

590


What are types of functions?

567






What is the purpose of main() function?

659


Explain setjmp()?

659


How can I get random integers in a certain range?

613


Are there constructors in c?

597


program for reversing a selected line word by word when multiple lines are given without using strrev

1947


What are the application of void data type in c?

717


find out largest elemant of diagonalmatrix

1651


Explain what is the difference between #include and #include 'file' ?

585


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

612


How do you determine the length of a string value that was stored in a variable?

652