Thread: Function is not executed....

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    13

    Function is not executed....

    sorry my mistake, a minor mistake..

    i think this is invalid

    for(i=0;i<10;i+3)
    {
    --- some codes---
    }
    Last edited by enakta13; 09-25-2012 at 09:27 PM.

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    So is this solved?
    You understand that 'i' is not updated in the expression 'i+3'?

  3. #3
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    Code:
    for(i=0;i<10;i+=3)
    Fact - Beethoven wrote his first symphony in C

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    (never mind, corrected!)

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    13
    Quote Originally Posted by Matticus View Post
    (never mind, corrected!)
    right i should have written the code as:
    Code:
    for(i=0;i<10;i+=3)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. printf statement executed twice
    By ananddr in forum C Programming
    Replies: 4
    Last Post: 05-07-2009, 12:17 AM
  2. why a certain line is not being executed
    By transgalactic2 in forum C Programming
    Replies: 19
    Last Post: 10-10-2008, 11:35 AM
  3. Daemon monitor what is executed?
    By Kinasz in forum Windows Programming
    Replies: 2
    Last Post: 09-24-2004, 06:36 AM
  4. executed exe does not close
    By Dream in forum C++ Programming
    Replies: 2
    Last Post: 11-28-2001, 04:38 AM

Tags for this Thread