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 volatile variable in c with example?
What are local static variables? How can you use them?
How do you print only part of a string?
What are loops in c?
What is the use of bitwise operator?
Explain how do you convert strings to numbers in c?
How can I read and write comma-delimited text?
hi any body pls give me company name interview conduct "c" language only
develop algorithms to add polynomials (i) in one variable
how to capitalise first letter of each word in a given string?
What is integer constants?
Explain how do you determine whether to use a stream function or a low-level function?
What is ponter?
I need previous papers of CSC.......plz help out by posting them.......
What is a protocol in c?