9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
commit fcc549fe5221ca170ef446834d5a411530ce55b2
parent dd180ce0de9cd17c9506250a7e2d546ecc6bf0b3
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Thu, 27 May 2021 00:05:02 -0300

Update: added guia04/ex06.c

Diffstat:
Mguia04/ex06.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/guia04/ex06.c b/guia04/ex06.c
@@ -1,4 +1,4 @@
-/*    G04E06 - Print elements of a 2D array using pointer    
+/*    G04E06 - Print elements of a 2D array using a pointer
  *    by Martin J. Kloeckner    
  *    github.com/klewer-martin    */
 
@@ -9,9 +9,9 @@ int main (void)
     int *dos_ptr; 
     int (*ptr2vector)[4]; 
 
-    int dos_vector[3][4] = { { 1, 2, 3, 4 }, 
-                             { 5, 6, 7, 8 },
-                             { 9,10,11,12 } }; 
+    int dos_vector[3][4] = {{ 1, 2, 3, 4 }, 
+                            { 5, 6, 7, 8 },
+                            { 9,10,11,12 }}; 
 
     dos_ptr = dos_vector[0];
     for(size_t i = 0; i < 3 * 4; i++)