Thread: arrays proplem
View Single Post
Join Date: Jul 2005
Posts: 1,671
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 261
Lerner Lerner is offline Offline
Posting Virtuoso

Re: arrays proplem

 
0
  #4
Dec 28th, 2007
I thought this was initialization:

int num[] = {1, 2, 3, 4};

and this:
  1. int num[4];
  2. for(int i = 0; i < 4; i++i)
  3. num[i] = i;
represented serial assignment.

Furthermore I think that either the instructor, the OP, or I (and I don't think it's me this time) don't know the difference between iniatialization of the elements of an array and assignment to the elements of an array and use the two concepts interchangeably, as they can end up with the same result.
Reply With Quote