In program that put data by fgets to char array, array is declared like that:
char line[0x400];
Is such declaration allow to input more data to array? I dont understand why not to use:
char line[400];
In program that put data by fgets to char array, array is declared like that:
char line[0x400];
Is such declaration allow to input more data to array? I dont understand why not to use:
char line[400];
Values starting with 0x
are interpreted as hexadecimal values in C and C++. So
char line[0x400];
declares an Array of char
of 1024 elements and
char line[400];
an Array of char
of 400 elements.
0x400
is a hexadecimal representation. Usually, when you see a number in this format 0x<number>
it means the number is represented as an hexadecimal.