#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
i tried in pc the ans is 5
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What is indirection in c?
What is the best style for code layout in c?
What are the properties of union in c?
Difference between constant pointer and pointer to a constant.
What is difference between main and void main?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
When is a “switch” statement preferable over an “if” statement?
What are the uses of a pointer?
Why do we use header files in c?
Why is void main used?
Describe the steps to insert data into a singly linked list.
What is keyword in c?
What are file streams?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
How can I handle floating-point exceptions gracefully?