Pre-Test
- Choose a statement to use C If Else statement.
- By default a function returns a value of type
- What is the output of the C Program.?
#include
int main()
{
if( 4 > 5 )
{
printf("Hurray..\n");
}
printf("Yes");
return 0;
} - Which is valid string function ?
- Find the output of the given C program.
#include
intmain()
{
if(-5)
printf("a");
printf("b");
else
printf("c");
printf("d");
return 0;
}
else if is compulsory to use with if statement.;
else is compulsory to use with if statement.
else or else if is optional with if statement.
None of the above
int
Char
void
None of these
Yes
Hurray.. Yes
Hurray..Yes
Compiler error
strpbrk
strlen
strxfrm
strcut
abd
cd
Compile time error
ab
