"Manish_Ganvir" <> writes:
> Please do not use pointer arithmetic or for loops
> Solution
Q: How do I compute the size of an int without using sizeof?
A: Use sizeof. That's what it's for.
Q: But how do I compute the size of an int *without using sizeof*?
A: Why would you want to do a silly thing like that?
Q: It's a homework assignment.
A: Then give us your instructor's e-mail address so we can submit the
solution directly. You wouldn't want to deny us credit for our
work, would you?
Q: But then how do I get class credit?
A: I guess you don't.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.