Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to write your own sizeof operator?
Home
C Plus Plus
How to write your own sizeof operator?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
How to write your own sizeof operator?
c-programming-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 9
by
GeorgeBell
#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)
...