C
Comp.Lang.c
Hello
Iam Niranjan... i have one small doubt.
void main()
{
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..
plz clarify any one..
Thanking you
Niranjan
Iam Niranjan... i have one small doubt.
void main()
{
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..
plz clarify any one..
Thanking you
Niranjan