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
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Why isn't any of this standardized in c? Any real program has to do some of these things.
Explain the ternary tree?
i want to know the procedure of qualcomm for getting a job through offcampus
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
How can I make it pause before closing the program output window?
Explain what is operator promotion?
Explain modulus operator.
What is ponter?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
How can I avoid the abort, retry, fail messages?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the explanation for the dangling pointer in c?
explain what are actual arguments?
Explain that why C is procedural?