void main()
{
int x,y=2,z;
z=(z*=2)+(x=y=z);
printf("%d",z);
}
Answers were Sorted based on User's Feedback
Answer / sanjay bk
8400,8521, when you run program then program giving output is different different answer.
| Is This Answer Correct ? | 2 Yes | 2 No |
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
What are segment and offset addresses?
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit
main() { int i=400,j=300; printf("%d..%d"); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
How we print the table of 3 using for loop in c programing?
abcdedcba abc cba ab ba a a
Which version do you prefer of the following two, 1) printf(ā%sā,str); // or the more curt one 2) printf(str);