Skip to main content
8 events
when toggle format what by license comment
Mar 14, 2012 at 15:53 comment added TheTechGuy @jk I was out of touch with C++. You are right. Will fix the ans.
Mar 14, 2012 at 15:51 comment added jk. strings in C++ do not need to be created with new
Mar 14, 2012 at 15:28 vote accept progammer
Mar 14, 2012 at 15:31
Mar 14, 2012 at 15:18 comment added TheTechGuy Addressed your comment int the question itself. Plz see edit.
Mar 14, 2012 at 15:15 comment added John Bode @Appy - possibly. C doesn't provide a string data type as such; strings are represented as aggregates of the primitive type char. C++ introduced a proper string data type, but whether or not it's a "primitive" type itself depends on whom you ask. Personally, I would not classify it as such. However, I would classify an old-school BASIC string type as a primitive type, for reasons that are probably completely arbitrary.
Mar 14, 2012 at 15:15 history edited TheTechGuy CC BY-SA 3.0
added 602 characters in body
Mar 14, 2012 at 15:08 comment added progammer Thanks for the answer . Does classification of a datatype as "primitive" depend on the implementation ? Like in C/C++ we store strings as char arrays .But we need to explicitly define them . So if some other language has the same implementation to store a string but provides it implicitly , will the datatype "string" be a primitive in that particular language ?
Mar 14, 2012 at 15:03 history answered TheTechGuy CC BY-SA 3.0