> and i would like to know one more thing.is there any difference between char* a and char *a?
Semantically, no.
But from a style point of view,
you have a better chance working out that b is a character, than you have of working out that d is a character.Code:char *a, b; char* c, d;