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 :)

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.