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
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
Explain how can type-insensitive macros be created?
Do pointers store the address of value or the actual value of a variable?
write a program to print data of 5 five students with structures?
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.
What is output redirection?
Explain main function in c?
What is your stream meaning?
Why c language is called c?
What does. int *x[](); means ?
How can I implement sets or arrays of bits?
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
What is difference between %d and %i in c?
What is the scope of static variables in c language?
Describe wild pointers in c?