Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / abdur rab

#include <stdio.h>

int main ( int argc, char* argv[] )
{
if ( !printf("Hello") )
printf ("Hello");
else printf (" World");
}

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of getchar() function?

1083


Tell me what is the purpose of 'register' keyword in c language?

976


Was 2000 a leap year?

1009


What is indirection in c?

1034


Is null equal to 0 in sql?

1100


Can stdout be forced to print somewhere other than the screen?

1020


What is getch() function?

1018


What is stack in c?

1036


what is event driven software and what is procedural driven software?

2516


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1240


What are identifiers and keywords in c?

1045


How can I copy just a portion of a string?

1277


Write a program for finding factorial of a number.

1041


What is the value of uninitialized variable in c?

986


What are the rules for identifiers in c?

1034