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 how can you determine the size of an allocated portion of memory?
Do you know what are bitwise shift operators in c programming?
What is %s and %d in c?
What's the best way of making my program efficient?
How can my program discover the complete pathname to the executable from which it was invoked?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
When should a type cast be used?
How many identifiers are there in c?
Is it possible to pass an entire structure to functions?
Is int a keyword in c?
Are comments included during the compilation stage and placed in the EXE file as well?
Explain about block scope in c?
Explain the difference between exit() and _exit() function?
What are the 5 elements of structure?
Write a program in c to replace any vowel in a string with z?