[ create a new paste ] login | about

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

C++, pasted on Jun 29:
1
2
3
4
5
6
7
8
9
10
11
int main(){
int const var;
var=20;


int const * const p = &var;
//p=&var;

return 0;

}


Output:
1
2
3
In function 'int main()':
Line 2: error: uninitialized const 'var'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: