How can char
pointer be initialized with a string (Array of characters) but an int
pointer not with a array of integer?
When I tried this
int* a={1,2,3,4,5};
It gives an error saying
error: scalar object ‘a’ requires one element in initializer
But,
char* name="mikhil"
works perfectly.