Skip to content

Instantly share code, notes, and snippets.

@itszero
Created December 16, 2009 14:58
Show Gist options
  • Save itszero/257879 to your computer and use it in GitHub Desktop.
Save itszero/257879 to your computer and use it in GitHub Desktop.
#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