#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 / poorna
Warning: Function Should have return value........
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is the difference between Printf(..) and sprint(...) ?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Explain the difference between call by value and call by reference in c language?
Explain the difference between getch() and getche() in c?
How to Throw some light on the splay trees?
What is const keyword in c?
What are the loops in c?
What does return 1 means in c?
Write a c program to demonstrate character and string constants?
What is the best way to comment out a section of code that contains comments?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
What is the significance of an algorithm to C programming?
What is a macro?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
How can I access an I o board directly?