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 functions are used for dynamic memory allocation in c language?
What is null pointer constant?
How do you do dynamic memory allocation in C applications?
what are the 10 different models of writing an addition program in C language?
What is a scope resolution operator in c?
Explain can you assign a different address to an array tag?
Write a program with dynamically allocation of variable.
What is static memory allocation?
Tell me when is a void pointer used?
How can type-insensitive macros be created?
What does the c preprocessor do?
What is the easiest sorting method to use?
Difference between macros and inline functions? Can a function be forced as inline?
Are the outer parentheses in return statements really optional?
Explain how can I read and write comma-delimited text?