What's the difference between a pointer to a string to which i have assigned malloc and an array of chars? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's the difference between a pointer to a string to which i have assigned malloc and an array of chars?

I'm learning in C, and i can't seem to find any differences between the two aformentioned datatypes.

19th Apr 2019, 9:33 PM
Alexander Sheremet
Alexander Sheremet - avatar
0 Answers