I am writing a program. The code, that part on which breaks:
int main() { int *x; x[0]=1; } It gives an error when performing:
Run-Time Check Failure #3 - The variable 'x' is being used without being initialized What am I doing wrong?
I am writing a program. The code, that part on which breaks:
int main() { int *x; x[0]=1; } It gives an error when performing:
Run-Time Check Failure #3 - The variable 'x' is being used without being initialized What am I doing wrong?
Pointer you created, and where is the memory allocation?
And what should this “prog” do? In this edition there is an attempt to write int (1) at an unknown address.
Source: https://ru.stackoverflow.com/questions/377476/
All Articles