Thread: C Programming
View Single Post
Old 04-09-2005, 07:51 PM   #4 (permalink)
bla!!
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

Yes, but how is this function accessing any memory other than its own?

From what we're given, it's a straight forward calculation. It doesn't recurse, and the function scanf prevents buffer overflows (for the most part).

I don't see how this function could wind up accessing any memory other than its own given to it by the OS.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline