0

Little doubt in C strings and characters

I've been searching this for some time and couldn't find the answer in looking for. In C, " " and ' ' don't work the same way. Why?

2nd Jun 2021, 3:00 AM
Rishi
Rishi - avatar
1 Odpowiedź
+ 4
double quotes are used to enclose char arrays (strings), while simple quotes used for only one char (not array of...)
2nd Jun 2021, 3:04 AM
visph
visph - avatar