Skip to content

Instantly share code, notes, and snippets.

@Rahajustone
Created March 14, 2014 19:53
Show Gist options
  • Save Rahajustone/9555500 to your computer and use it in GitHub Desktop.
Save Rahajustone/9555500 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
printf( "char : %d bayt\n", sizeof(char));
printf( "short : %d bayt\n", sizeof(short));
printf( "int : %d bayt\n", sizeof(int));
printf( "long : %d bayt\n", sizeof(long));
printf( "unsigned char : %d bayt\n", sizeof(unsigned char));
printf( "unsigned short : %d bayt\n", sizeof(unsigned short));
printf( "unsigned int : %d bayt\n", sizeof(unsigned int));
printf( "unsigned long : %d bayt\n", sizeof(unsigned long));
printf( "float : %d bayt\n", sizeof(float));
printf( "double : %d bayt\n", sizeof(double));
printf( "long double : %d bayt\n", sizeof(long double));
return 0;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment