-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq8.c
More file actions
26 lines (23 loc) · 989 Bytes
/
q8.c
File metadata and controls
26 lines (23 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//A2Q8
#include<stdio.h>
int main()
{
int a;
printf("%d \n",sizeof(a));
printf("size of int: %d \n",sizeof(int));
printf("size of char: %d \n",sizeof(char));
printf("size of float: %d \n",sizeof(float));
printf("size of long int: %d \n",sizeof(long int));
printf("size of short int: %d \n",sizeof(short int));
printf("size of unsigned int: %d \n",sizeof(unsigned int));
printf("size of signed int: %d \n",sizeof(signed int));
printf("size of short unsigned int: %d \n",sizeof(short unsigned int));
printf("size of long unsigned int: %d \n",sizeof(long unsigned int));
printf("size of short signed int: %d \n",sizeof(short signed int));
printf("size of long signed int: %d \n",sizeof(long signed int));
printf("size of double: %d \n",sizeof(double));
printf("size of long double: %d \n",sizeof(long double));
printf("size of unsigned char: %d \n",sizeof(unsigned char));
printf("size of signed char: %d \n",sizeof(signed char));
return 0;
}