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 is auto keyword in c?

797


What is wild pointer in c?

617


Is it fine to write void main () or main () in c?

559


Is c still used?

614


What is the right way to use errno?

631






What are identifiers and keywords in c?

584


Explain the Difference between the New and Malloc keyword.

694


What 'lex' does?

725


Can a variable be both constant and volatile?

572


What is #include stdlib h?

628


Explain what is the difference between functions getch() and getche()?

616


What is p in text message?

549


Why do we write return 0 in c?

564


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

632


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

771