[ create a new paste ] login | about

Link: http://codepad.org/NZ4aLNEX    [ raw code | output | fork ]

C, pasted on Oct 1:
1
2
3
4
5
6
7
8
9
    #include <stdio.h>

    int main()
    {
        const char array[] = "Hello";
        char* pointer = "Hello";
        printf("Array: %d - Pointer: %d", sizeof(array), sizeof(pointer));
        return 0;
    }


Output:
1
Array: 6 - Pointer: 4


Create a new paste based on this one


Comments: