+ 6
Does this mean we have only 4 data types?
int = 4 float = 4 double = 8 char = 1
9 ответов
+ 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";