Possible Duplicate:
Passing pointer argument by reference under C?
Are reference variables a C++ concept? Are they available in C? If available in C, why is my code giving a compilation error?
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a = 10;
int b = 20;
int &c = a;
int &d = b;
return 0;
}
Output:
bash-3.2$ gcc test.c
test.c: In function `main':
test.c:12: error: parse error before '&' token
Why?