#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 / arun sebastin
The answer is %h %h %h
Because to print integer in c we have to use %d
but here they use %h which is wrong and the printf
statement print it without any error
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
c program to compute AREA under integral
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Why array is used in c?
How can I sort a linked list?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
#include
Hi can anyone tell what is a start up code?
What are the 3 types of structures?
How to declare a variable?
What are the main characteristics of c language describe the structure of ac program?
What is this infamous null pointer, anyway?
What is the difference between union and structure in c?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1