3. Advanced Structures, Arrays

3. Advanced Structures, Arrays

Postby Cuchulainn » Wed Jan 21, 2009 1:04 pm

This is a simple exercise to test basic arrays. Consider the compile-time matrix:



double mat[10][20];



Write C functions to do the following;



add and multiply matrices

min/max values in a matrix

sum of squares in a matrix



!! row-major, column-major order



now write the same using



double** mat;
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Return to C++ Certification and Examinations: Intermediate Level

Who is online

Users browsing this forum: No registered users and 1 guest