Thread: what is the output

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    then the compiler will tell nothing,but i is uninitialized
    Actually my compiler tells me about using uninitialized variables.

    main.c||In function ‘main’:|
    main.c|4|warning: variable ‘a’ set but not used [-Wunused-but-set-variable]|
    main.c|5|warning: ‘i’ is used uninitialized in this function [-Wuninitialized]|
    ||=== Build finished: 0 errors, 2 warnings ===|
    Jim

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by jimblumberg View Post
    Actually my compiler tells me about using uninitialized variables.
    Jim
    I suppose then it is up to the compilers and the versions of it.I compile it in a Linux with an old i would say compiler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ overlapping output and adding extensions to output files
    By lordmorgul in forum Linux Programming
    Replies: 9
    Last Post: 05-11-2010, 08:26 AM
  2. How to edit output in struct and call for the output
    By andrewkho in forum C Programming
    Replies: 4
    Last Post: 03-16-2010, 10:28 PM
  3. terminal output not showing output properly
    By stanlvw in forum C Programming
    Replies: 13
    Last Post: 11-19-2007, 10:46 PM
  4. output a string to a standard output
    By sh4k3 in forum C Programming
    Replies: 3
    Last Post: 06-15-2007, 05:59 AM
  5. Replies: 3
    Last Post: 02-19-2003, 08:34 PM

Tags for this Thread