C Program : Sizeof() operator

 #include <stdio.h>

int main() { int integerVar; float floatVar; char charVar; printf("Size of int: %lu bytes\n", sizeof(int)); printf("Size of float: %lu bytes\n", sizeof(float)); printf("Size of char: %lu bytes\n", sizeof(char)); printf("Size of integerVar: %lu bytes\n", sizeof(integerVar)); printf("Size of floatVar: %lu bytes\n", sizeof(floatVar)); printf("Size of charVar: %lu bytes\n", sizeof(charVar)); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management