for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer????
Answer Posted / guest
The value of i starts at 1 and increments from there. The
loop terminates when i <= 0.
For an unsigned value, this is only possible when i == 0.
For a signed value, incrementing a positive value by 1 will
eventually overflow within the binary word to become the
most negative value an integer can hold. The sequence is
thus (..., INT_MAX-1, INT_MAX, INT_MIN) and the loop
terminates, where INT_MAX and INT_MIN are the "most
positive" and "most negative" values for the word size used
on your machine.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
find out largest elemant of diagonalmatrix
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What does main () mean in c?
What is use of bit field?
Is multithreading possible in c?
What are control structures? What are the different types?
Is there a way to switch on strings?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
How can I find out if there are characters available for reading?
What does. int *x[](); means ?
In a switch statement, what will happen if a break statement is omitted?
List out few of the applications that make use of Multilinked Structures?
Explain bit masking in c?
How can a string be converted to a number?