-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata types.c
More file actions
21 lines (19 loc) · 755 Bytes
/
Copy pathdata types.c
File metadata and controls
21 lines (19 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
void main(){
int a=1; //interger type of data type
float b=2.4563; //float type
double c=8.23366; //double float data type
long d=444; //long data type
short e=123; //short data type
char f= 'Z'; //character data type
printf("Storage of the INT is : %d \n", sizeof(int));
printf("Storage of the char is : %d \n", sizeof(char));
printf("Storage of the FLOAT is : %d \n", sizeof(float));
printf("Storage of the double is : %d \n", sizeof(double));
printf("Storage of the long is : %d \n", sizeof(long));
printf("Storage of the short is : %d \n", sizeof(short));
//printf("Storage of the INT is : %d" sizeof(int));
}