I want to print row which I want from 2d array.

Recommended Answers

All 2 Replies

Sample code to print k'th row of an array arr with n elements in each row


k-1 cuz the first index is 0

Be a part of the DaniWeb community

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