Question 528: How many times thewhileloop will get executed if ashort intis 2 byte wide?#include<stdio.h> int main() { int j=1; while(j <= 255) { printf("%c %d\n", j, j); j++; } return 0; }
tcs
wipro
infosys
general
aptitude
control-instructions
c-programming
Thewhile(j <= 255)loop will get executed 255 times. The size short int(2 byte wide) does not affect thewhile()loop.