Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!
Interview Questions and Answers :: Broadcom Ltd

9. How to implement sizeof operator.


#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)
int main()
    double x;
    printf("%d", my_sizeof(x));
    return 0;

Post Your Answer Here:      Public      Private

Rate This: +1 -0

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here