FIND THE OUTPUT IF THE INPUT IS 5 5.75
void main()
{
int i=1;
float f=2.25;
scanf("%d%f",&i,&f);
printf("%d %f",,i,f);
}
ANSWER IS 5 AND 2.25 WHY?
Answer Posted / hari.11
hey,
if we give input as 5 5.75
output would be: 5 5.750000
for further queries and discussions, visit..
http://forum.campusmaniac.com/
http://www.campusmaniac.com/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do we use static in c?
What is clrscr ()?
Can you write the algorithm for Queue?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What are header files in c?
How can I do peek and poke in c?
Which one would you prefer - a macro or a function?
What is the difference between pure virtual function and virtual function?
Suggesting that there can be 62 seconds in a minute?
Why is c called "mother" language?
What is the use of pointers in C?
Why is c called c not d or e?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
what are bit fields in c?
What are the types of c language?