Trace table for an array
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 9 of 9

Thread: Trace table for an array

Threaded View

  1. #1
    Join Date
    Feb 2014

    Trace table for an array

    So far I realize that when it enters the while loop, track will be 0, marr[track] will be marr[3]. is this correct or will 23+3 be the correct understanding. Does this mean it will be a infinite loop since track is never incremented. it will always be track<7

    int marr[6]={23,67,12,9,33,7};
    int track =0;
    int ans = 2;

    marr[track] = marr[track] + 3;
    ans = marr[track] / ans;
    Last edited by andraesatchell; February 6th, 2014 at 12:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)