What are different Data Types in C programming language?
Data Types
On this page
Data Types
#include <stdio.h>
int main()
{
//Data types
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 double: %d",
sizeof(double));
return 0;
}
Output
Size of int: 4
Size of char: 1
Size of float: 4
Size of double: 8