+ 6
Does this mean we have only 4 data types?
int = 4 float = 4 double = 8 char = 1
9 Answers
+ 18
C has the following simple data types:
// Size (bytes)
âą char // 1
âą unsigned char // 1
âą short int // 2
âą unsigned short int // 2
âą (long) int // 4
âą float // 4
âą double // 8
https://www.sololearn.com/learn/C/2912/
+ 5
You need to specify the language.
+ 2
You forgot String
+ 2
We have Derived data types also. In C ex: struct, the union, array, and enum which are derived from basic data types like char, int etc.,
+ 1
Bytes
+ 1
José Ngoyi strings is like an array of characters
+ 1
It's a data type
+ 1
Alright
+ 1
Data type non-primitive. Update your list :
int num = 4;
float floatNum = 4,99f;
char letter = 'D';
boolean bool = true;
String text = "Hello";Â