[ create a new paste ] login | about

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

C, pasted on Nov 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct x{
    int i;
    int j;
} A[5];

struct y{
    int i;
    int j;
    struct y * next;
} B[5];

int main() {
    B[0] = A[0];
    return 0;
}


Output:
1
2
In function 'main':
Line 13: error: incompatible types in assignment


Create a new paste based on this one


Comments: