[ create a new paste ] login | about

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

C, pasted on Apr 21:
1
2
3
4
5
#include <stdio.h>
main()
{ char ch[3][5]={"AAAA", "BBB",CC"};
printf("\"%s\"\n", ch[1]);
}


Output:
1
2
3
4
5
6
7
8
In function 'main':
Line 3: error: missing terminating " character
Line 3: error: 'CC' undeclared (first use in this function)
Line 3: error: (Each undeclared identifier is reported only once
Line 3: error: for each function it appears in.)
Line 4: error: expected '}' before 'printf'
Line 5: error: expected ',' or ';' at end of input
Line 5: error: expected declaration or statement at end of input


Create a new paste based on this one


Comments: