main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
}
Answer Posted / ashwin kumar
sorry friends one small mistake in above explanation
hi friends
in c we must know one thing 1st
any number other than '0' is taken as true 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 ? | 5 Yes | 0 No |
Post New Answer View All Answers
How is a pointer variable declared?
Not all reserved words are written in lowercase. TRUE or FALSE?
What will be the outcome of the following conditional statement if the value of variable s is 10?
How can this be legal c?
Explain Basic concepts of C language?
Why do we use header files in c?
How do you convert strings to numbers in C?
What is a void * in c?
What is the use of sizeof?
Is it possible to have a function as a parameter in another function?
Explain how can you tell whether two strings are the same?
Is null always defined as 0(zero)?
what do you mean by enumeration constant?
Explain bit masking in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above