Labeling Jagged Arrays

  • Thread starter Cant Think Today
  • Start date
C

Cant Think Today

I have multi-dimesional arrays that can be specifed by the user, e.g

1,2,3,4,5
1,2,3,4,5,6,7,8,9,10
1,2,3,4,5,6

I think a bit of code that will iterate over these arrays to print out
the element indices for each unique element in the N-dimensional
array. E.g. for the above

1:1:1
1:1:2
1:1:3
1:1:4

So what is the loop with the printf that will print the line to std???
This is probably simple as hell but its late and I can't think!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top