Write a program to use size of operator to determine the size of different data types.
/*A program to use size of operator to determine the size of different data types
programmed by
name: Jitendra yadav
roll: 16 */
#include <stdio.h>
#include <conio.h>
void main()
{
printf(“Integer takes %d bytes of memory in this computer”,sizeof(int));
printf(“\ncharacter takes %d bytes of memory on this computer”,sizeof(char));
printf(“\nFloat takes %d bytes of memory on this computer”,sizeof(float));
printf(“\nDouble takes %d bytes of memory on this computer”,sizeof(double));
getch()
Comments (2)