View RSS Feed

jwxie518

  1. sentinel-control-structure vs counter = 0 or counter = 1

    by , 03-01-2009 at 10:27 AM
    Yesterday I was re-reading about the sentinel-control-structure, and I came back to my problem on why the author initialize the counter from 0 or from 1 (in two different cases).
    For the discussion thread, please look at here
    http://forum.codecall.net/c-c/14435-...structure.html


    I will first let you guys see what are the two cases:

    First case (definite-counter-control structure)
    Task: You are ask to develop a program that will ...
    Categories
    Programming