#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 / srinath

x=8;
y=0;
z=16;

Is This Answer Correct ?    19 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1757


What is register variable in c language?

591


Which is the best website to learn c programming?

570


What are derived data types in c?

599


Explain what is the benefit of using an enum rather than a #define constant?

708






Explain the properties of union. What is the size of a union variable

710


Why is sizeof () an operator and not a function?

568


Define VARIABLE?

682


When the macros gets expanded?

774


What is the difference between functions abs() and fabs()?

639


What is c language & why it is used?

569


What's the best way of making my program efficient?

615


What is openmp in c?

602


How to find a missed value, if you want to store 100 values in a 99 sized array?

803


code for quick sort?

1607