Find the size of a datatype without using sizeof in c
#include
int main(){
int intType;
float fType;
double dType;
char cType;
printf("Size of int: %ld bytes\n",sizeof(intType));
printf("Size of float: %ld bytes\n",sizeof(fType));
printf("Size of double: %ld bytes\n",sizeof(dType));
printf("Size of char: %ld byte\n",sizeof(cType));
return 0;
}
agyanadda
Author & Editor
Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.
December 05, 2018
0 $type={blogger}:
Post a Comment