SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
Sum of all the elements of the matrix
Sum of all the elements of the matrix
Input:
1 2 3
4 5 6
7 8 9
Output:
The sum of all the elements of the matrix is: 45
Implementation:
#include
#include
#define r 2 #define c 2 int findsum(int *a[]) { int i,j,sum=0; for(i=0;i
PREVIOUS
NEXT
HOME