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

%h%h%h

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between pure virtual function and virtual function?

642


What is a pragma?

660


a value that does not change during program execution a) variabe b) argument c) parameter d) none

686


what is the function of pragma directive in c?

613


Is Exception handling possible in c language?

1572






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

568


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

650


what is a constant pointer in C

664


Differentiate between a for loop and a while loop? What are it uses?

658


Write a code to generate a series where the next element is the sum of last k terms.

725


What is property type c?

596


Compare interpreters and compilers.

633


How will you write a code for accessing the length of an array without assigning it to another variable?

611


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1343


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2715