[ create a new paste ] login | about

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

C, pasted on Nov 9:
1
2
double test = 0.3;
printf("%.5f", test);


Output:
1
2
3
4
5
Line 2: error: expected declaration specifiers or '...' before string constant
Line 2: error: expected declaration specifiers or '...' before 'test'
Line 2: warning: data definition has no type or storage class
Line 2: error: conflicting types for 'printf'
t.c:3: note: a parameter list with an ellipsis can't match an empty parameter name list declaration


Create a new paste based on this one


Comments: