Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
Answer Posted / shalabh
This will be an infinite loop as the value of unsigned char
cannot exceed 255....c++2 can be errornous..but the value
of unsigned char cannot go beyond 255
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain do array subscripts always start with zero?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
How can I trap or ignore keyboard interrupts like control-c?
What is ponter?
What is the significance of scope resolution operator?
c program to compute AREA under integral
How are Structure passing and returning implemented by the complier?
What is struct node in c?
What are the 3 types of structures?
how logic is used
What are register variables in c?
Who invented b language?
What is the right way to use errno?
What is wrong in this statement?
What is string in c language?