Math, asked by classmate44, 1 year ago

diference between 'a'and "a"in c language​

Answers

Answered by dvipada07
1

Answer:

char * A [] means "an array of pointers to chars," whereas char ** A means "a pointer to a pointer to a char." Note that the first one explicitly tells you that we are working with an array, while the second does not make such a guarantee. However, by construction, both are equivalent to C because an array is stored as a pointer to the first element in that array.

An array of pointers is a special instance of a pointer to a pointer; a pointer to a pointer is not necessarily an array of pointers. To demonstrate this, note that, for a pointer array arrp, you can assign char ** A = (char**)(void*)arrp, but you cannot (i.e. it throws a compiler error) char * A [] = (char*[])(void*[])arrp; -- in fact, you can't instantiate and array without giving it a length argument, and you can't cast to arrays either, only pointers

Step-by-step explanation:

Answered by nikki200414
0

a-a=0

I hope this will help you

Similar questions