Created
May 7, 2020 12:05
-
-
Save skysign/2f2beed75affed9bc0e4eee0b19e928f to your computer and use it in GitHub Desktop.
cpp question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int global[3][3]; | |
void func1(int** local); | |
int main() | |
{ | |
func1((int**)global); | |
std::cout << "Hello World!\n"; | |
return 1; | |
} | |
void func1(int** local) { | |
local[0][0] = 1; // <- exception | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment