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
What is auto keyword in c?
What is wild pointer in c?
Is it fine to write void main () or main () in c?
Is c still used?
What is the right way to use errno?
What are identifiers and keywords in c?
Explain the Difference between the New and Malloc keyword.
What 'lex' does?
Can a variable be both constant and volatile?
What is #include stdlib h?
Explain what is the difference between functions getch() and getche()?
What is p in text message?
Why do we write return 0 in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
what is a NULL Pointer? Whether it is same as an uninitialized pointer?