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 explanation for prototype function in c?
List the different types of c tokens?
Tell us something about keyword 'auto'.
Differentiate between ordinary variable and pointer in c.
Explain what are run-time errors?
What is the stack in c?
What is the role of this pointer?
By using C language input a date into it and if it is right?
What is %g in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is 02d in c?
Can the sizeof operator be used to tell the size of an array passed to a function?
What kind of structure is a house?
Explain pointer. What are function pointers in C?
write a program to find the given number is prime or not