Exercise 5: Implementing Double Pointers
Create a board by using double pointers.
We'll cover the following
Problem statement
Write a makeBoard
function that takes two parameters: rows
and columns
. This function should create a board of the specified size and then call the printBoard
function. For the printBoard
function, determine the appropriate arguments yourself. This function should:
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.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy