Kursinnehåll
C++ Pointers and References
C++ Pointers and References
3. References Fundamentals
Array Pointer Arithmetic Practice
*arr | **arr |
*(arr + row) | **(arr + column) |
Uppgift
Swipe to start coding
- Access the last element of the second row of the array.
- Access the fourth element of the third row of the array.
- Output the sum of these elements.
Lösning
solution
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
Array Pointer Arithmetic Practice
*arr | **arr |
*(arr + row) | **(arr + column) |
Uppgift
Swipe to start coding
- Access the last element of the second row of the array.
- Access the fourth element of the third row of the array.
- Output the sum of these elements.
Lösning
solution
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4