23.01.2018, 19:25
Quote:
sizeof() counts characters and stops when it reaches the null terminator (0, '\0', EOS)
|
Код:
str[128] = "Hello"; printf("%i", sizeof(str)); //will print 128
sizeof() counts characters and stops when it reaches the null terminator (0, '\0', EOS)
|
str[128] = "Hello"; printf("%i", sizeof(str)); //will print 128