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
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is scope rule in c?
What are the data types present in c?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Which is better malloc or calloc?
What is new line escape sequence?
Can the “if” function be used in comparing strings?
Which driver is a pure java driver
What is calloc() function?
What is the difference between procedural and functional programming?
how many key words availabel in c a) 28 b) 31 c) 32
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is include directive in c?
What is a program flowchart?