Top

Discussion

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;
}

 

  • A.Infinite times
  • B.255 times
  • C.256 times
  • D.254 times

Answer: B

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment