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 pass by reference in functions?

905


What is the scope of static variable in c?

1078


What is the use of gets and puts?

1093


How are pointers declared in c?

1112


Why can’t constant values be used to define an array’s initial size?

1438


Why is it important to memset a variable, immediately after allocating memory to it ?

2131


How can I recover the file name given an open stream?

1080


How can I discover how many arguments a function was actually called with?

1112


Why is structure important for a child?

1145


Explain what is a 'locale'?

1126


What is the use of header files?

1153


What is binary tree in c?

1136


Can the size of an array be declared at runtime?

1143


What is pointer to pointer in c with example?

1154


Explain can you assign a different address to an array tag?

1121