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 is reason of your company position's in india no. 1.

2268


How are 16- and 32-bit numbers stored?

1259


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2199


Why do we use c for the speed of light?

1130


Tell me what is null pointer in c?

1040


Explain how do you list files in a directory?

1038


What is a structure in c language. how to initialise a structure in c?

1035


Calculate 1*2*3*____*n using recursive function??

2000


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1184


Write a program to implement queue.

1083


Differentiate between a for loop and a while loop? What are it uses?

1150


what is stack , heap ,code segment,and data segment

2651


What is the difference between scanf and fscanf?

1220


What is queue in c?

1053


Is null equal to 0 in sql?

1107