The code is::::: if(condition)
Printf("Hello");
Else
Printf("World");
What will be the condition in if in such a way that both
Hello and world are printed in a single attempt?????? Single
Attempt in the sense... It must first print "Hello" and it
Must go to else part and print "World"..... No loops,
Recursion are allowed........................

Answer Posted / subbu

#include<stdio.h>

int main()
{
if(!printf("Hello")
{
printf("Hello");
}
else
printf("World");
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

864


Explain bitwise shift operators?

919


What is volatile, register definition in C

897


How do I round numbers?

784


What is the use of function in c?

922


How do shell structures work?

790


Explain that why C is procedural?

898


write a program to rearrange the array such way that all even elements should come first and next come odd

2026


Can you add pointers together? Why would you?

878


If the size of int data type is two bytes, what is the range of signed int data type?

792


Explain function?

867


How arrays can be passed to a user defined function

787


List a few unconditional control statement in c.

767


Explain what are the __date__ and __time__ preprocessor commands?

862


What are the types of pointers?

782