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
Why ca not I do something like this?
Can we change the value of static variable in c?
What is openmp in c?
What are preprocessor directives?
What is calloc()?
What is the use of clrscr?
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
What is the process of writing the null pointer?
What are pointers in C? Give an example where to illustrate their significance.
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.
Why do we use & in c?
What does %2f mean in c?
How to write a multi-statement macro?
What is c token?
What are the advantages and disadvantages of a heap?