Function is not executed....

This is a discussion on Function is not executed.... within the C Programming forums, part of the General Programming Boards category; sorry my mistake, a minor mistake.. i think this is invalid for(i=0;i<10;i+3) { --- some codes--- }...

  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
    2,370
    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,384
    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
    2,370
    (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, 03:38 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21