C
Programming and Technical
Programming
if(.......)
{
printf("hello");
}
else
{
printf("world");
}
without changing any code just put the condition in if(......) so that the output will be "helloWorld".
Read Solution (Total 15)
-
- #include
#include
main()
{
if( printf("hello")==0)
{
printf("hello");
}
else
{
printf("world");
}
} - 10 years agoHelpfull: Yes(13) No(0)
- if(!printf("hello"))
- 10 years agoHelpfull: Yes(5) No(0)
- if(!printf("hello"))
printf returns the number of lines printed in the console . NOT operator changes the value to false so else will be printed. Resulting into "HelloWorld". - 10 years agoHelpfull: Yes(3) No(1)
- if(!printf("hello"))
- 10 years agoHelpfull: Yes(2) No(0)
- !printf("hello")
- 10 years agoHelpfull: Yes(1) No(0)
- fork() , it is used to print both child and parent so it execute first if condition then else condition
- 10 years agoHelpfull: Yes(0) No(0)
- condition inside if should be - !printf("Hello")
- 10 years agoHelpfull: Yes(0) No(0)
- if(printf"hello"))
printf("world");
else
printf("world"); - 10 years agoHelpfull: Yes(0) No(0)
- Out put is impossible,because there is no statement is present to execute if and else continuously,if we put this code in while or for loop then may be we get output like "helloworld".But by using this code we cant't print helloworld
- 10 years agoHelpfull: Yes(0) No(1)
- if(printf("Hello")==' ')
{
printf("Hello");
}
else
printf("World");
- 10 years agoHelpfull: Yes(0) No(0)
- void main()
{
if(!printf("hello"))||if(!5)
{
}
else
printf("world");
} - 10 years agoHelpfull: Yes(0) No(0)
- #include
#include
void main()
{
if(!(printf("hello")))
{
printf("hello");
}
else
{
printf("world");
}
} - 10 years agoHelpfull: Yes(0) No(0)
- #include
#include
int main()
{
if(printf("helloworldr"))
{
printf("hello");
}
else
{
printf("world");
}
getch();
return 0;
}
- 10 years agoHelpfull: Yes(0) No(0)
- if(!(printf("hello")))
{
printf("hello");
}
else
{
printf("world");
} - 10 years agoHelpfull: Yes(0) No(0)
- if(!(printf("hello")))
{
printf("hello");
}
else
{
printf("world");
} - 9 years agoHelpfull: Yes(0) No(0)
C Other Question