"Comp.Lang.c" <> writes:
> Iam Niranjan... i have one small doubt.
I suggest you pick a name for yourself other than "Comp.Lang.c".
That's the name of the newsgroup; referring to yourself by the same
name is bound to cause confusion. (Using your own real name is
usually best, but some people choose to use pseudonyms.)
> void main()
int main(void)
> {
> int size;
> size = sizeof(int *);
> printf("\n size of int *------>%x"size);
> size = sizeof(char *);
> printf("\n size of char *------>%x"size);
> size = sizeof(float *);
> printf("\n size of float *------>%x"size);
> }
> here i got the same size for all three.
> when all three taking the same size... why we need different type of
> pointers..
Because they point to different types.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.