By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,808 Members | 1,477 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,808 IT Pros & Developers. It's quick & easy.

Getting the size of Class

P: n/a
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.

Aug 6 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Aug 6, 9:40 am, deba <debabrata.deb...@gmail.comwrote:
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

Aug 6 '07 #2

P: n/a
deba wrote:
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?

--
Ian Collins.
Aug 6 '07 #3

P: n/a
Yah dis question was asked in interview.Plz reply it

Aug 6 '07 #4

P: n/a
deba wrote:
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.

--
Ian Collins.
Aug 6 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.