Develop a C program to find the size of char, int, float and double data type occupied in memory by C compiler using sizeof() operator
Code
Output#include<stdio.h>int main(){printf("Size of char: %ld byte\n",sizeof(char));printf("Size of int: %ld bytes\n",sizeof(int));printf("Size of float: %ld bytes\n",sizeof(float));printf("Size of double: %ld bytes\n", sizeof(double));return 0;}
0 Comments
Post a Comment