Return

Posts 1–5 of 5 · Page 1 of 1
Return
What
Code:
Return 0;
does ?
It returns execution to where ever the function was called with a return value of 0.
Also I dont get the use of Pointers.. any help?

For example I use this
Code:
#include <iostream>
using namespace std;
int main(){
		int x;
		int* ptr1 = &x;
	*ptr1 = 5;
			cout << x << endl;
			system("PAUSE");
}
And thats a waste of time . . you can simply do

Code:
#include <iostream>
using namespace std;
int main(){
		int x;
	    x = 5;
	
			cout << x << endl;
			system("PAUSE");
}
...
Yes, but if you did not make the variable, the only way to access it is indirectly with pointers (game hacking concept).
oh thanks

/msgtshrt
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us