#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 / guest
the x itself is 2 and the print out is 9
| Is This Answer Correct ? | 14 Yes | 16 No |
Post New Answer View All Answers
Why c is called a middle level language?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Write a program to generate random numbers in c?
How are structure passing and returning implemented?
Is there a way to compare two structure variables?
Explain how do you use a pointer to a function?
All technical questions
Can you please compare array with pointer?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is a ternary operator in c?
What is null pointer in c?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is c mainly used for?
Write a program to check armstrong number in c?
Explain function?