I want to define array of char in header file:
#define name char[5]
and after to use in this define in struct like this:
struct dog{
name nameOfDog;
int ageOfDog;
};
but it makes me the following error:
"Brackets are not allowed here; to declare an array, place the brackets after the name"
Is there another way to set it to be in the correct syntax?
Thanks!
char nameOfDog[5], notchar[5] nameOfDog.int arr[5]{};