J
JS
I have this struct:
int main()
{
struct jb {
char actor[25];
struct jb *next;
};
struct jb *bond;
As I understand it actor is a char array that can hold a string with 24
chars (excluding the NULL character).
But how is it then possible to write a string larger than 25 chars, like
this:
strcpy(bond->actor, "Sean Conneryhhhhhhhhhhhhhhhhhhhh");
int main()
{
struct jb {
char actor[25];
struct jb *next;
};
struct jb *bond;
As I understand it actor is a char array that can hold a string with 24
chars (excluding the NULL character).
But how is it then possible to write a string larger than 25 chars, like
this:
strcpy(bond->actor, "Sean Conneryhhhhhhhhhhhhhhhhhhhh");