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()
{
int x = 0;
if (x == 1)
if (x == 0)
printf("inside if\n");
else
printf("inside else if\n");
else
printf("inside else\n");
}

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

 #include <stdio.h>
int x;
void main()
{
if (x)
printf("hi");
else
printf("how are u");
}

3) 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");
}

4) A labeled statement consists of an identifier followed by a

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

 #include <stdio.h>
int main()
{
int x = 0;
if (x == 0)
printf("true, ");
else if (x = 10)
printf("false, ");
printf("%d\n", x);
}

UP Gk Online Test

taiyari24hour.com

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