Okay so I have a question. Lets say I want to create arrays of exact size for abstract data type members. For example:
1 2 3 4 5 6
struct student
{
char name[10];
int idNumber;
};
my question is how to declare this array as null so that later i can give it an exact size to match the length of the name. if it were not a part of the struct i would imagine that the code would look something like this:
Although you can also have a pointer in there and dynamically point that array later on to a char array. This will have your struct the size of a pointer and an int.
yeah we are supposed to use c-style strings so therefor i cannot use the string class object. if i just maid it a pointer can i later define it as an array?