char* ...is it similar to
char var[5];
int *x;
x = & var[0];
?

In your example x is an integer while var is a character array. In that case x can not be a pointer to var without a typecast.

Here is a good explaination of pointers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.