void func(void* arg)
{
printf("%d\n", ((int*)arg)[0]);
}
void main()
{
int a = 2;
func(&a);
}
===>
2
'Papers > programming' 카테고리의 다른 글
Downcasting: C++ vs. Java (0) | 2013.12.02 |
---|---|
declare an object in switch logic (0) | 2013.11.21 |
constructor & destructor calling in inheritance (0) | 2013.11.19 |
What is the difference between singleton and static class? (0) | 2013.07.16 |
이차원 배열선언 (0) | 2013.05.17 |