/*use of sizeof*/
#include<stdio.h> #include<conio.h> main() { clrscr(); char a; int b; float c; double d; a=sizeof(char); b=sizeof(int); c=sizeof(float); d=sizeof(double); printf("\nsize of char=%d\n",a); printf("\nsize of integer=%d\n",b); printf("\nsizeof float=%f\n",c); printf("\nsize of d float=%f\n",d); getch(); }
No comments:
Post a Comment