hey people kindly tell me if the following declaration is correct?
if it is then kindly explain
typedef char HELLO[5];
HELLO name;
now what datatype is name? [as in a character,integer etc]
i came to know that name will be an array of strings but when i run the following programme i get error
#include<stdio.h>
typedef char HELLO[5];
void main()
{
HELLO name;
name="hey";
printf("%s",name);
}
error: incompatible types when assigning to type ‘HELLO’ from type ‘char *’