what is the difference between char a[] and* char a[] ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the difference between char a[] and* char a[] ?

14th Jul 2016, 3:46 AM
Mayank
2 Answers
0
char a [] is array of char variables and char *a [] is array of char pointers
14th Jul 2016, 9:04 AM
Mukul Kumar
Mukul Kumar - avatar
- 1
You are probably asking the difference between char a[] and char *a. Both are same. They both are used to initialise pointer of a char type
14th Jul 2016, 4:48 AM
Aman Agarwal
Aman Agarwal - avatar