#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
Is swift based on c?
What is the difference between functions getch() and getche()?
#include
How do you redirect a standard stream?
What is the use of bitwise operator?
List the different types of c tokens?
What is default value of global variable in c?
differentiate built-in functions and user – defined functions.
What is && in c programming?
Which node is more powerful and can handle local information processing or graphics processing?
number of times a digit is present in a number
Why can’t constant values be used to define an array’s initial size?
What is zero based addressing?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What does the function toupper() do?