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

main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
}

Answer Posted / ashwin kumar

hi friends

in c we must know one thing 1st

any number other than '0' is taken as false in c language


so as A=-1 1st
so A is true
now not of A i.e !A = false=0
now not of !A i.e !!A= true =1

so 1st 1 is printed

same if u do for A=0

it will be false 1st than true than false

i.e 0 is printed

for A=1 same as A=-1


there fore answer is 101

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What functions are used for dynamic memory allocation in c language?

1163


What is null pointer constant?

1180


How do you do dynamic memory allocation in C applications?

1096


what are the 10 different models of writing an addition program in C language?

1906


What is a scope resolution operator in c?

1290


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

1061


Write a program with dynamically allocation of variable.

1150


What is static memory allocation?

1190


Tell me when is a void pointer used?

1194


How can type-insensitive macros be created?

1177


What does the c preprocessor do?

1120


What is the easiest sorting method to use?

1189


Difference between macros and inline functions? Can a function be forced as inline?

1289


Are the outer parentheses in return statements really optional?

1127


Explain how can I read and write comma-delimited text?

1183