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 difference between struct and typedef struct in c?
Is exit(status) truly equivalent to returning the same status from main?
What is the sizeof () a pointer?
The difference between printf and fprintf is ?
Do you know the difference between malloc() and calloc() function?
What is the sizeof () operator?
Explain the concept and use of type void.
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Why void main is used in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
How many types of operators are there in c?
What are structures and unions? State differencves between them.
What is malloc and calloc?
Explain Basic concepts of C language?
Why doesn't C support function overloading?