#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 / mohit (firozabad, adc)

Here The Program will be print the Message %h%h%h only
because in the c language
the data type print the integer value by %d
character by %c
float by %f
pointer type by %u

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the steps to insert data into a singly linked list.

721


Write a code on reverse string and its complexity.

685


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

674


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1235


Is c pass by value or reference?

690






The difference between printf and fprintf is ?

803


What is a good way to implement complex numbers in c?

693


Write a program to reverse a given number in c language?

723


How do you write a program which produces its own source code as output?

704


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1213


What are the different types of objects used in c?

657


Who is the founder of c language?

780


What is the difference between exit() and _exit() function?

683


Explain what is the advantage of a random access file?

785


What is the scope of local variable in c?

671