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


Please Help Members By Posting Answers For Below Questions

write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1445


Explain how can type-insensitive macros be created?

564


Do pointers store the address of value or the actual value of a variable?

602


write a program to print data of 5 five students with structures?

1598


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1513






What is output redirection?

680


Explain main function in c?

616


What is your stream meaning?

592


Why c language is called c?

559


What does. int *x[](); means ?

627


How can I implement sets or arrays of bits?

596


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

632


What is difference between %d and %i in c?

682


What is the scope of static variables in c language?

622


Describe wild pointers in c?

629