I am getting an error when entering the code at the very end. please fix it.
9. Write function getMoveRow to do the following
a. Return type integer
b. Parameter list
i. 1-d character array (i.e. move), size 3
c. Convert the row portion of the player’s move to the associated
integer index for the board array
d. Example:
i. move = ‘b2’
ii. 2 is the row
iii. 2 is index 1 in the board array
e. Return the row array index that corresponds to the player’s move
f. Return a -1 if the row is not valid (i.e. INVALID)
10. Write function getMoveCol to do the following
a. Return type integer
b. Parameter list
i. 1-d character array (i.e. move), size 3
c. Convert the column portion of the player’s move to the associated
integer index for the board array
d. Example:
i. move = ‘b2’
ii. b is the column
iii. b is index 1 in the board array
e. Return the column array index that corresponds to the player’s
move
f. Return a -1 if the column is not valid (i.e. INVALID)
I am getting an error when entering the code at the very end. please fix it.
This is the code in C
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)