c types size via sizeof() method

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <uuid/uuid.h>
#include <string.h>
#include <stdbool.h>

void typesSize();

int main()
{
    typesSize();
}

void typesSize()
{
    printf("size of char=%ld\n", sizeof(char));
    printf("size of int=%ld\n", sizeof(int));
    printf("size of double=%ld\n", sizeof(double));
    printf("size of bool=%ld\n", sizeof(bool));
}

 

c types size via sizeof() method

 

上一篇:阅读笔记《A hybrid video anomaly detection framework via memory-argumented flow reconstruction and flow-g


下一篇:WINDOWS特有的消息常量标识符