+ 1

isnt const char* and const char[] the same

if an array is just a pointer to the start of it, isnt those two types the same? if no where do they defear? I tried to use both and they behaved differently, why?

22nd Oct 2019, 9:10 PM
Denomycor
Denomycor - avatar
2 Antworten
+ 2
the difference is that one is an array while the other is a pointer, and mind you array a nd pointer have there little differences, which i think you already know
22nd Oct 2019, 9:53 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
In which way did they behave differently?
22nd Oct 2019, 9:53 PM
HonFu
HonFu - avatar