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

How do I use strcmp?

1024


code for quick sort?

1985


What are structure types in C?

1049


What is sizeof array?

1002


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1031


Explain the concept and use of type void.

1060


what type of questions arrive in interview over c programming?

1982


Compare interpreters and compilers.

1027


Is there a way to jump out of a function or functions?

1028


What is array within structure?

1061


What does 2n 4c mean?

1188


What are identifiers c?

1020


What is local and global variable in c?

1128


code for replace tabs with equivalent number of blanks

2100


What is c language in simple words?

1013