Guyz I Don't want to write another array function using VOID I wanna do it using pointers for the extra grades...... can ny one give me a clude or just6 a sample code snippet on how to return a 2-D array ?? I have to fing sum of upper half of left diagonal of a 2-D int array.
atish00
0
Junior Poster
Recommended Answers
Jump to PostPointing to a 2D array is just like pointing to a 1D array, all the pointer does it point to the very first element of the array. Heres an example that shows how you can point to multi-dimensional arrays by using pointers.
#include<iostream> using namespace std; void …
All 4 Replies
William Hemsworth
1,339
Posting Virtuoso
Bench
212
Posting Pro
atish00
0
Junior Poster
atish00
0
Junior Poster
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.