[Bug 1451083] Re: scanf

checoimg checoimg at gmail.com
Thu Aug 13 15:25:24 UTC 2015


The problem was on what I was taught in how to use scanf. My professor
instructed that we use a newline character (\n) in the format and GCC
doesn't work like that anymore. a Simple scanf('%d", &var); does the
trick

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1451083

Title:
  scanf

Status in gcc-defaults package in Ubuntu:
  New

Bug description:
  I compile this code : http://ideone.com/W5Nvfi

  I don't get the first full for loop to run, it jumps directly to the
  rest of the program.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: gcc 4:4.9.2-2ubuntu2
  ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
  Uname: Linux 3.19.0-15-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sat May  2 16:04:20 2015
  InstallationDate: Installed on 2015-04-24 (8 days ago)
  InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  SourcePackage: gcc-defaults
  UpgradeStatus: Upgraded to vivid on 2015-04-24 (8 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1451083/+subscriptions



More information about the foundations-bugs mailing list