#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 / c harlee jain
Value of x will be 2
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How does pointer work in c?
What does malloc () calloc () realloc () free () do?
How can you increase the size of a dynamically allocated array?
what is a function method?give example?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Explain what’s a signal? Explain what do I use signals for?
Can a variable be both constant and volatile?
a c code by using memory allocation for add ,multiply of sprase matrixes
Lists the benefits of c programming language?
What should malloc() do?
Do string constants represent numerical values?
Should a function contain a return statement if it does not return a value?
How to implement a packet in C
What does typedef struct mean?
What are integer variable, floating-point variable and character variable?