Why we don't use & for string in c programming? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we don't use & for string in c programming?

We use & in c programming for describing the address of the variables. But why don't we use it for string?

4th Mar 2019, 2:10 PM
Hrideta Barua
Hrideta Barua - avatar
1 Answer
0
Because a string is already a pointer on the first char of the string.
4th Mar 2019, 3:15 PM
Théophile
Théophile - avatar