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

What is the explanation for prototype function in c?

573


List the different types of c tokens?

629


Tell us something about keyword 'auto'.

668


Differentiate between ordinary variable and pointer in c.

623


Explain what are run-time errors?

612






What is the stack in c?

723


What is the role of this pointer?

555


By using C language input a date into it and if it is right?

576


What is %g in c?

625


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4183


What is 02d in c?

639


Can the sizeof operator be used to tell the size of an array passed to a function?

622


What kind of structure is a house?

562


Explain pointer. What are function pointers in C?

630


write a program to find the given number is prime or not

3849