Facebook
From CL5, 7 Months ago, written in Plain Text.
This paste is a reply to Re: CSE 2.1 CL2 from CL4 - view diff
Embed
Download Paste or View Raw
Hits: 412
  1. // Online C++ compiler to run C++ program online
  2. #include <stdio.h>
  3.  
  4. int total=0;
  5.  
  6. /*void sum_array(int arr[], int array_size)
  7.     {
  8.         for (int i=0; i <array_size; i++)
  9.          {
  10.             total = total + arr[i];
  11.          }
  12.     }
  13.  
  14.  
  15.     {
  16.         *x = *x + *y;
  17.         printf("%d\n",*x);
  18.     }
  19.     */
  20.  
  21. void sum_matrix(int mat[3][4])
  22.     {
  23.         for (int i=0; i<3; i++)
  24.             {
  25.                 for (int j=0; j
  26.