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
Which header file is used for clrscr?
What is equivalent to ++i+++j?
For what purpose null pointer used?
how many key words availabel in c a) 28 b) 31 c) 32
How to Throw some light on the splay trees?
Explain the bubble sort algorithm.
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
write a program to print largest number of each row of a 2D array
explain what are pointers?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What are actual arguments?
What is #include stdio h and #include conio h?
What are the types of data structures in c?
Why is c so popular?
Describe the header file and its usage in c programming?