0
what does [100] means in char a[100]; ?
#include <stdio.h> int main() { ----> char a[100]; <---- gets(a); printf("You entered: %s", a); return 0; }
2 Respuestas
+ 3
That means you get memory reserved for 100 letters.
Each letter can be accessed using an index between 0 and 99.
+ 2
You get memory reserved for 100 char variables and you can access using an index between 0 and 99
For example char a[0] = char b