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
Is that possible to store 32768 in an int data type variable?
What are local static variables? How can you use them?
What is a const pointer in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Should I learn c before c++?
Find MAXIMUM of three distinct integers using a single C statement
Here is a neat trick for checking whether two strings are equal
Why main function is special give two reasons?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
How to implement a packet in C
Write a program to print factorial of given number without using recursion?
What are header files in c?
What are the advantages of using linked list for tree construction?
Write a program on swapping (100, 50)
Is multithreading possible in c?