#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 print fibonacci series using recursion?
How do I get an accurate error status return from system on ms-dos?
what is reason of your company position's in india no. 1.
How to compare array with pointer in c?
What is data structure in c language?
What is c language and why we use it?
What is the purpose of sprintf?
What is pointers in c?
What is the size of structure pointer in c?
What are the various types of control structures in programming?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
How is = symbol different from == symbol in c programming?
What is difference between array and pointer in c?
What is the mean of function?
When would you use a pointer to a function?