Anonymous

Write A Simple Program To Find The Size Of Different Basic Data Types In C Read More: Write A Simple Program To Find The Size Of Different Basic Data Types In C?

1

1 Answers

Ambika ambi Profile
Ambika ambi answered
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
float b;
char c;
double d;
clrscr();

printf("The size of a is %d bytes",sizeof(a));
printf("The size of a is %d bytes",sizeof(b));
printf("The size of a is %d bytes",sizeof(c));
printf("The size of a is %d bytes",sizeof(d));
getch();
}

Answer Question

Anonymous