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 / reshma pawar
there is error in
printf("%d %f",,i,f);
because 2 (,) operators are used
an if operator is removed then output will be
5 5.750000
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the value of c?
What is meant by inheritance?
What is the use of linkage in c language?
given post order,in order construct the corresponding binary tree
What is the benefit of using #define to declare a constant?
What are volatile variables in c?
What is pointer and structure in c?
largest Of three Number using without if condition?
Wt are the Buses in C Language
Why do we write return 0 in c?
What is #error and use of it?
What are logical errors and how does it differ from syntax errors?
What is clrscr in c?
What is the difference between memcpy and memmove?
Should I learn c before c++?