#include #include void foo(int *a, int *b); void foo(int *a, int *b) { *a = 5; *b = 6; a = b; } int main(void) { int
I'm not sure what you're going after... if it's to get a and b to contain the same value, try *a = *b.
a
b
*a = *b