Im trying to get the value of c by muliplying a times b using pointers y and x ( z points to c), but from what i understand only addition and subtraction can be done through pointers. Dont mind the other variable and crap, i just havent cleaned it up yet.Code:#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, b, c;
int* x;
int* y;
int* z;
int* p;
int* q;
int* r;
a = 4;
b = 3;
x = &a;
y = &b;
z = &c;
z = a * b;
printf ("a = %d, b =% d, c = %d", *x, *y, *z);
system("PAUSE");
return 0;
}

