Loop Loop Loop

Which of the following is correct about the following loop in C?

1
2
3
4
5
6
7
8
#include <stdio.h>

int main(void) {
    char i;
    for (i=0; i <256; i++)
        printf("%d\n", i);
    return 0;
}
  • Assume that char is guaranteed to be of 8 bits.
×

Problem Loading...

Note Loading...

Set Loading...