ok i took this piece of code from the tutorial and compiled it, and it worked! but it doesn't use p*, it uses*p
Code:
#include <stdio.h>
int main()
{
int x; /* A normal integer*/
int *p; /* A pointer to an integer ("*p" is an integer, so p
must be a pointer to an integer) */
p = &x; /* Read it, "assign the address of x to p" */
scanf( "%d", &x ); /* Put a value in x, we could also use p here */
printf( "%d\n", *p ); /* Note the use of the * to get the value */
getchar();
}
EDIT: sorry, the page didn't refresh until i postid this, ignore it