kaldin

  • Login

C Programming


10) How many times the while loop will get executed if a short int is 2 byte wide?

#include<stdio.h>
int main()
{
    int j=1;
    while(j <= 255)
    {
        printf("%c %d\n", j, j);
        j++;
    }
    return 0;
}
  • A)

  • B)

  • C)

  • D)

Previous
Show Answer:
Show Answer


More Question
If char=1, int=4, and float=4 bytes size, What will be the output of the program #includestdio.hint main() char ch = 'A'; printf(d, d, d, sizeof(ch), sizeof('A'), sizeof(3.14f)); return 0;
Will the program compile in Turbo C #includestdio.hint main() int a=10, j; void k; j=k=&a; j++; k++; printf(u u\n, j, k); return 0;
va_list is an array that holds information needed by va_arg and va_end.
The keyword used to transfer control from a function back to the calling function is
What will be the output of the program #includestdio.hint main() int i=4, j=8; printf(d, d, d\n, ij&ji, ij&ji, i^j); return 0;