visit this link...
http://www.parashift.com/c++-faq-lit...c-and-cpp.html

ur problem is well explained here...