954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Question... About a question?

Hello I'm just wondering (In terms of computer science)

If someone gave you a task about matrix, 2D arrays to:

Assign to each of the aij, the value 1000 + i + j?

Would you assume that

the array would have:

rows = 500
columns = 500

That's the 1000 bit..

Then 2 for loops:

i = (i=0; (i < 500);
j = (j=0; (j < 500);

Would this be an adequate assumption?

Thanks :)

phorce
Posting Whiz
362 posts since Jul 2011
Reputation Points: 31
Solved Threads: 26
 

No. I would ask for clarification. Making assumptions is prone to rewrites and lost revenues. Get a complete description so you don't have to guess.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You