Hi,
I am trying to implement the sizeof() programe
main()
{
int a,res;
a = sizeOf(a);
printf("size=5d\n",res);
}
int sizeOf( void var)
{
void *ptr;
ptr = &var;
return((char*)&ptr[1] - (char*)&ptr[0]);
}
But this is giving error ,
so plz check and correct it