Exercise 5: Implementing Double Pointers
Let's create a Board by using double-pointers.
We'll cover the following
Problem Statement
In this exercise, you have to write a makeBoard
function that takes two parameters rows
and columns
, and creates a board of this size. After that, this function will call the printBoard
function. For the printBoard
function, you have to figure out the arguments yourself. This function:
Will initialize the board to store the value 1 at every index in the board.
Display the resulting board.
Sample input
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy