#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 / azeem khan

Answer is 5

Is This Answer Correct ?    19 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

605


What is an identifier?

631


Explain the use of 'auto' keyword

680


Discuss the function of conditional operator, size of operator and comma operator with examples.

681


In a byte, what is the maximum decimal number that you can accommodate?

628






What is the difference between procedural and declarative language?

654


Why double pointer is used in c?

568


writ a program to compare using strcmp VIVA and viva with its output.

1526


How can you allocate arrays or structures bigger than 64K?

684


Is stack a keyword in c?

638


‎How to define structures? · ‎

631


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

613


write a c program for swapping two strings using pointer

2095


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1122


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

2123