[ create a new paste ] login | about

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

dennyrolling - C, pasted on Jan 14:
1
2
3
4
5
6
7
8
int main() {
char *dst, *src;
for(int i = 0; i < 10; ++i);
{
*dst[i]++ = *src[i]++;
}
return 0;
}


Output:
1
2
3
4
In function 'main':
Line 3: error: 'for' loop initial declaration used outside C99 mode
Line 5: error: invalid type argument of 'unary *'
Line 5: error: invalid type argument of 'unary *'


Create a new paste based on this one


Comments: