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


Please Help Members By Posting Answers For Below Questions

Explain do array subscripts always start with zero?

929


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

971


How can I trap or ignore keyboard interrupts like control-c?

800


What is ponter?

997


What is the significance of scope resolution operator?

1096






c program to compute AREA under integral

2048


How are Structure passing and returning implemented by the complier?

898


What is struct node in c?

790


What are the 3 types of structures?

750


how logic is used

1680


What are register variables in c?

769


Who invented b language?

1124


What is the right way to use errno?

806


What is wrong in this statement?

798


What is string in c language?

809