Discussion :: Control Instructions
-
How many times the while loop will get executed if a short int is 2 byte wide?
#include int main() { int j=1; while(j 255) { printf("%c %d\n", j, j); j++; } return 0; }
Answer : Option B
Explanation :
The while(j loop will get executed 255 times. The size short int(2 byte wide) does not affect the while() loop.
Be The First To Comment

Whatsapp
Facebook