------- Comment #6 from pinskia at gcc dot gnu dot org 2009-11-19 18:07 ------- (In reply to comment #5) > Mr. Andrew, > I dont understand the term 'undefined code'. Are you saying this is not a bug?
This is not a bug in GCC but the code you wrote. scanf's %d takes a pointer to an int variable and not a pointer to a char variable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42107