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; int value; printf("Enter your age:"); value=scanf("%f", &age); if(value==0){ printf("\\nYour age is not valid"); } AgeInSeconds = 365 * 24 * 60 * 60 * age; printf("\\n You have lived for %f seconds", AgeInSeconds); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Enter your age: xyz Your age is not valid

Related Computer Questions

Which of the following has maximum clique size 2? What does polymorphism in OOPs mean? In Java, can a subclass access public members (fields and methods) of its superclass defined in another package? Which of the following is non-available memory? A device mounted on a communication satellite which receives, amplifies and re-transmits signals from earth station is