What is the output of given program if user enter "xyz" ?
#include
					 Home | Discussion Forum
					 
						
                        
                    
                    

Free Online Test

Taiyari24Hour

What is the output of given program if user enter "xyz" ?

#include
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);
}



View More Related Question

1) What will be the output of the following C code?

 #include <stdio.h>
int main()
{
if (printf("%d", printf(")))
printf("We are Happy");
else if (printf("1"))
printf("We are Sad");
}

2) What will be the output of the following C code?

 #include <stdio.h>
int main()
{
int a = 1;
if (a)
printf("All is Well ");
printf("I am Well\n");
else
printf("I am not a River\n");
}

3) How many loops are there in C

4) What will be the output of the following C code?

 #include <stdio.h>
void main()
{
int x = 5;
if (x < 1);
printf("Hello");
}

5) Consider the following code fragment:

 for(digit=0; digit<9; digit++)
{
digit = 2*digit;
digit--;
}
How many times the loop will be executed?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.