#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
How is null defined in c?
find the sum of two matrices and WAP for it.
What is a spanning Tree?
what is the basis for selection of arrays or pointers as data structure in a program
What is sizeof array in c?
What is null pointer in c?
Are pointers integers in c?
What is a good way to implement complex numbers in c?
With the help of using classes, write a program to add two numbers.
how to capitalise first letter of each word in a given string?
How can I read a binary data file properly?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is the scope of local variable in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain how can I read and write comma-delimited text?