Getting the size of Class

D

deba

Suppouse you have given a datatype say X in C.
I want to know how to get the size of the datatype without declaring
a varriable or pointer of that type.And ofcourse without using sizeof
operator.
 
T

tragomaskhalos

Suppouse you have given a datatype say X in C.
I want to know how to get the size of the datatype without declaring
a varriable or pointer of that type.And ofcourse without using sizeof
operator.

Well obviously without using sizeof: I mean why
would you want to use the operator specifically
designed to solve your exact problem ?
Tshh
 
I

Ian Collins

deba said:
Suppouse you have given a datatype say X in C.
I want to know how to get the size of the datatype without declaring
a varriable or pointer of that type.And ofcourse without using sizeof
operator.
Homework?
 
I

Ian Collins

deba said:
Yah dis question was asked in interview.Plz reply it
I did.

It's been asked so many times before, I'm sure you can find the answer
in archives of this group or c.l.c.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top