#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
Do you have any idea how to compare array with pointer in c?
What is an identifier?
Explain the use of 'auto' keyword
Discuss the function of conditional operator, size of operator and comma operator with examples.
In a byte, what is the maximum decimal number that you can accommodate?
What is the difference between procedural and declarative language?
Why double pointer is used in c?
writ a program to compare using strcmp VIVA and viva with its output.
How can you allocate arrays or structures bigger than 64K?
Is stack a keyword in c?
How to define structures? ·
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
write a c program for swapping two strings using pointer
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
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?