curung How do I cheat?
Reputation: 0
Joined: 02 Dec 2023 Posts: 1
|
Posted: Sat Dec 02, 2023 4:07 am Post subject: pointer thread stack 0 |
|
|
I was practicing through a program I created. I set the pointer to one, but it didn't come out at once, so I scanned it and thread stack 0 came out.
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void main()
{
int a = 1000;
int* ap = &a;
printf("one\n");
printf("%p", ap);
int key;
while (1)
{
key = _getch();
switch (key)
{
case 13:
*ap = *ap + 10;
}
}
}
|
|