fork download
  1. #include<stdio.h>
  2. int main(){
  3. int sizec, sizef,sized;
  4. sizec=sizeof(char);
  5. sizef=sizeof(float);
  6. sized=sizeof(double);
  7. printf("Char = %d byte(s)\n",sizec);
  8. printf("Float = %d byte(s)\n",sizef);
  9. printf("Double = %d byte(s)\n",sized);
  10. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
Char = 1 byte(s)
Float = 4 byte(s)
Double = 8 byte(s)