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 use of printf() and scanf() functions?
Explain logical errors? Compare with syntax errors.
what is a function method?give example?
What are reserved words with a programming language?
When do we get logical errors?
What are the advantages of external class?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is a function simple definition?
What are the disadvantages of c language?
Explain how can I open a file so that other programs can update it at the same time?
What is a dynamic array in c?
Is main an identifier in c?
What are the types of arrays in c?
Which function in C can be used to append a string to another string?
What is fflush() function?