HOW TO FIND THE SIZE OF VARIOUS DATATYPE :-
QUESTION : HOW TO FIND THE SIZE OF VARIOUS DATATYPE
SOURCE CODE :
#include <stdio.h>
int main ()
{
int intType ;
float floatType;
char charType;
printf ("%zu\n",sizeof (intType));
printf ("%zu\n",sizeof (floatType ));
printf ("%zu\n",sizeof(charType));
return 0;
}
INPUT:
OUTPUT :
We can see in output box that our compiler print the size of int, float, character datatype easily .
N.B- sizeof (intType) is an build in operator.
-------Thank u for visiting this page
Short nd Quick processes...
ReplyDeleteVery Helpful 😇😇
Thanks🤍..keep supporting
Delete