Home / MCQ Bank / Computer
Computer Control Structures

What is the output of given program if user enter "xyz" ? #include<stdio.h> void main() { float age, AgeInSeconds; printf("Enter your age:"); scanf("%f", &age); AgeInSeconds = 365 * 24 * 60 * 60 * age; printf("You have lived for %f seconds", AgeInSeconds); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Enter your age: xyz You have lived for 0.00000 seconds

Related Computer Questions

Which of following shows a better runtime performance for coalescing functionality, using functions, and using objects? Which of the following is true about the size of an ArrayList in Java? What will be the output of the following R function? nchar() What is computational geometry? What will be the output of the following Python code? x = ['ab', 'cd'] for i in x: i.upper() print(x)