Created
December 16, 2009 14:58
-
-
Save itszero/257879 to your computer and use it in GitHub Desktop.
This file contains 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> | |
using namespace std; | |
void fun(int *array) | |
{ | |
cout << *array << endl; | |
} | |
int main() | |
{ | |
int array[10][10] = {0}; | |
array[0][0] = 5; | |
fun((int*)array); | |
return 0; | |
} | |
--- | |
osxhost:/tmp# ./a.out | |
5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment