30/09/2018, 18:20

Few bytes on NULL pointer in C

GeeksforGeeks – 2 Oct 15

NULL pointer in C - GeeksforGeeks

At the very high level, we can think of NULL as null pointer which is used in C for various purposes. Some of the most… Read More »

... viết 20:24 ngày 30/09/2018
#include <stdio.h>

int main(void) {
    
    printf("%d\n", sizeof(NULL));
    
    int *ptr = NULL;
    printf("%d\n", sizeof(*ptr));
    
    printf("%d\n", sizeof(void));
    printf("%d\n", sizeof(void*));
    return 0;
}

Bài liên quan
0