Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
Answer Posted / subbu
instead of "c++2" if there is "c++" it will not give any
errors. output will be continuosly for infinite number of
times.
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is nested structure with example?
What is operator promotion?
Do pointers need to be initialized?
Why is structure padding done in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Can a local variable be volatile in c?
What is integer constants?
What are qualifiers?
What is a method in c?
How many levels of indirection in pointers can you have in a single declaration?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What is the difference between a function and a method in c?