Timeline for What is meant by a primitive data type?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15, 2012 at 14:51 | comment | added | stonemetal | @Appy C++ ships with classes for strings, vectors, and maps. These are built-in they come with the language, are in the language definition etc. However they are written in C++ they come from the standard library. You could write your own that behaves identically. Compare this to an int or a char. You can't define your own char in C++. You could overload every operator on a class and get something that behaves similarly but not identically. This is a primitive. Basically something defined in a language that is not implementable in that language. | |
Mar 14, 2012 at 16:03 | comment | added | Maxood | @Mason Wheeler This is where we use the term loose typing and strong typing. As i have heard people saying that VB is a loosely typed language while Java is a strongly typed one. Please confirm. | |
Mar 14, 2012 at 15:14 | comment | added | progammer | Thanks :) Your answer is very informative , but I am unable to understand clearly . CAn you give some examples (probably with C/C++/Java) . | |
Mar 14, 2012 at 15:11 | history | answered | Mason Wheeler | CC BY-SA 3.0 |