It's UWAweek 47

help5507

This forum is provided to promote discussion amongst students enrolled in CITS5507 High Performance Computing.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 3 articles in this topic
Showing 3 of 148 articles.
Currently 13 other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
1:19am Sun 25th Aug, ANONYMOUS

Hi,

Just wondering if we need to return a 2D array, which kinds of format you will recommend:

Format 1:

int array[i][j] function()

Format 2:

int** function(int row, int column)

The first one is returning a static array, and the second one is returning a dynamic one which uses the double pointer.

Thanks, Joey


SVG not supported

Login to reply

👍?
helpful
1:23am Sun 25th Aug, ANONYMOUS

Sorry format one should be:

// ROW and COL are defined via #DEFINE

int[ROW][COL] function()


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
7:42pm Mon 26th Aug, ANONYMOUS

Sorry, I have done the research, only format 2 is supported by C. No worries!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy