Horje
C Variable Byte Sizes Code Example
C Variable Byte Sizes
#include <stdio.h>

int main(void) {
  printf("char size: %lu bytes\n", sizeof(char));
  printf("int size: %lu bytes\n", sizeof(int));
  printf("short size: %lu bytes\n", sizeof(short));
  printf("long size: %lu bytes\n", sizeof(long));
  printf("float size: %lu bytes\n", sizeof(float));
  printf("double size: %lu bytes\n", 
    sizeof(double));
  printf("long double size: %lu bytes\n", 
    sizeof(long double));
}




C

Related
Cannot open include file: 'graphviz/cgraph.h' Code Example Cannot open include file: 'graphviz/cgraph.h' Code Example
Smallest c program ever Code Example Smallest c program ever Code Example
4k stogram chave Code Example 4k stogram chave Code Example
getch' was not declared in this scope Code Example getch' was not declared in this scope Code Example
rpobleme valgrind Code Example rpobleme valgrind Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7