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 translation phases used in c language?
What is dynamic dispatch in c++?
What is atoi and atof in c?
How many data structures are there in c?
What is exit() function?
How are strings stored in c?
Why we use void main in c?
Is swift based on c?
What is the use of sizeof () in c?
Why can’t constant values be used to define an array’s initial size?
What is the basic structure of c?
Explain the difference between null pointer and void pointer.
Why does everyone say not to use gets?
Can a local variable be volatile in c?
Can we access array using pointer in c language?