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...

what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}

Answer Posted / himanshu goel

fail
because here if is taking 0 boolean value means condition
becomes false and else will be executed

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files and explain what are its uses in c programming?

1121


What is the sizeof () a pointer?

979


What are valid signatures for the Main function?

1222


What are header files? What are their uses?

1200


How #define works?

1098


What is a dynamic array in c?

1149


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1270


What is cohesion in c?

972


What is methods in c?

1081


How many types of arrays are there in c?

1036


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1979


What does the error message "DGROUP exceeds 64K" mean?

1215


Does free set pointer to null?

1001


Why is C language being considered a middle level language?

1118


What is the advantage of an array over individual variables?

1226