+ 1

Isn't string a non primitive data type in c?

9th May 2020, 12:14 PM
Gargee Nagapure
Gargee Nagapure - avatar
2 Respuestas
+ 2
string doesn't exist in C. You mean C++ then yes, like fernando said. string in c is an array of char with null byte at the end ,but there is no string datatype.
9th May 2020, 12:35 PM
Gen2oo
Gen2oo - avatar
+ 1
Yes. Char is a primitive data type; string isnt.
9th May 2020, 12:16 PM
Fernando Pozzetti
Fernando Pozzetti - avatar