Thread: C Programming
View Single Post
Old 04-05-2005, 11:38 PM   #2 (permalink)
bla!!
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

I have no idea what would be wrong with that.
I compiled it using the gcc compiler and it worked perfeclty.

Even the fact that scanf doesn't check for wrong input, in this case it will either cast a non-int to an int, or interpret a string as its numerical value.

Maybe post the entire function to see if something else is causing it.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline