Thread: why not 1,2,3,4,5 is output when I expected 1,2,3,4,5,6 for below codes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    24

    why not 1,2,3,4,5 is output when I expected 1,2,3,4,5,6 for below codes

    The below code results only 1,2,3,4,5 as output.

    I wonder why not "6" as it is written if==6

    http://s2.postimage.org/ywhcikrrd/c_example.gif
    Last edited by learning_grc; 09-11-2011 at 07:44 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array output not as expected
    By Futomara in forum C Programming
    Replies: 26
    Last Post: 11-04-2010, 11:24 AM
  2. zip codes
    By missny in forum C Programming
    Replies: 10
    Last Post: 09-16-2005, 02:39 AM
  3. non expected output
    By c++.prog.newbie in forum C Programming
    Replies: 2
    Last Post: 09-27-2004, 05:41 PM
  4. VK codes
    By Hunter2 in forum Windows Programming
    Replies: 10
    Last Post: 08-24-2002, 09:58 AM
  5. converting scan codes to ascii codes
    By stupid_mutt in forum C Programming
    Replies: 11
    Last Post: 01-25-2002, 04:06 PM