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 / biren
5 2.25
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is meant by high-order and low-order bytes?
Is c procedural or functional?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Write a program to print all permutations of a given string.
Explain how can a program be made to print the line number where an error occurs?
What is the use of structure padding in c?
What does do in c?
What are different types of operators?
How can I convert a number to a string?
What is the 'named constructor idiom'?
Why do we use int main instead of void main in c?
How can I write functions that take a variable number of arguments?
What is the purpose of 'register' keyword in c language?
How can I read in an object file and jump to locations in it?
Where local variables are stored in c?