#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
write a program to display all prime numbers
What is modeling?
What is meant by realloc()?
How is a pointer variable declared?
Why doesnt that code work?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is the difference between functions getch() and getche()?
What is #line in c?
What is a ternary operator in c?
What is a node in c?
What are the __date__ and __time__ preprocessor commands?
What is the condition that is applied with ?: Operator?
Which one would you prefer - a macro or a function?
Explain indirection?
Is there a built-in function in C that can be used for sorting data?