#include<stdio.h>
void main()
{
int a=5,b=6,c;
int x=(a<b)+7;
int y=(x==7)*9;
int z=(c=x+y)*2;
printf("%h %h %h",x,y,z);
}
What is the output? Explain it.
Answer Posted / ashish tiwari
#include<stdio.h>
void main()
{
int a=5,b=6,c;
int x=(a<b)+7;
int y=(x==7)*9;
int z=(c=x+y)*2;
printf("%d %d %d",x,y,z);
getch();
}
this is a right programme which can give out put 8 0 16..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of c language?
What is null pointer in c?
What is the significance of c program algorithms?
How can you call a function, given its name as a string?
Differentiate between functions getch() and getche().
write a c program to calculate sum of digits till it reduces to a single digit using recursion
List a few unconditional control statement in c.
Explain how do you generate random numbers in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
number of times a digit is present in a number
What is malloc return c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is the use of sizeof () in c?
How can I swap two values without using a temporary?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software