#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 the use of sizeof () in c?
In a switch statement, explain what will happen if a break statement is omitted?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is a pointer in c?
What are pointers in C? Give an example where to illustrate their significance.
How do we print only part of a string in c?
What is identifiers in c with examples?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
how could explain about job profile
Tell me is null always defined as 0(zero)?
What is nested structure with example?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
How do we declare variables in c?
When should a far pointer be used?
writ a program to compare using strcmp VIVA and viva with its output.