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 / hari.11

hey,
if we give input as 5 5.75
output would be: 5 5.750000

for further queries and discussions, visit..

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why ca not I do something like this?

583


Can we change the value of static variable in c?

550


What is openmp in c?

602


What are preprocessor directives?

664


What is calloc()?

617






What is the use of clrscr?

585


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

669


What is the process of writing the null pointer?

600


What are pointers in C? Give an example where to illustrate their significance.

737


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1585


Why do we use & in c?

580


What does %2f mean in c?

670


How to write a multi-statement macro?

614


What is c token?

597


What are the advantages and disadvantages of a heap?

697