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!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antworten