# The program is working like this, but i have problem declaring and calling the functions using pointers in 2D arrays

5 Answers

New AnswerIn this problem, you are asked to fill a n x n Sudoku box by numbers from the user such that: The Sudoku box is represented by a square (n x n) matrix. You will be using 2D arrays, so n should be known in compile time. Your code should be testable for any value of n ≥ 3. To ease testing your code on different values of n (n ≥ 3), define n as a global variable. All numbers in the box should be in the range [1, n x n] i.e. between 1 and n x n. Each number between 1 and n x n, can appear only once in the box. Initially fill the n x n matrix by 0’s Fill the matrix by reading numbers from the user. You should consider cases where the user input may be invalid, and ask him/her to input a valid number: o If the user input is outside the range [1, n x n]. o If the input is in the range, but the number is already in the box (violates the rule). To determine if the number is already in the box you should use two functions: foundInRow(int* arr[], int row, int number): checks if number belongs to the specified row in arr. foundInColumn(int* arr[], int column, int number): checks if number belongs to the specified column in arr. Print the box after filling it. https://code.sololearn.com/cX6tm5wFmQkU/?ref=app

5/31/2020 3:53:02 PM

Hussein.H5 Answers

New Answer
Hot Today

what the goal of object oriented programming ?
[Solved] Project Hangman - part 2. What is the error trying to say?
Who all agree : Similar to the level system sololearn has , there should a system of levels for each programming language.
Why react code is very complex?
Why it's showing error? JS
What Programming books should I read?👀🤔
I am studying in 7 class.i want to learn coding from which language I start first . Please tell me simple answer .
[Solved] How to print multiple max values?
[Solved] Project hangman! Logic Error. Project description is given. Only suggest logical correction in implementation.
Please what is wrong with this program? It keeps telling me that break is outside the loop

Learn Playing. Play Learning

SoloLearn Inc.

4 Embarcadero Center, Suite 1479

San Francisco, CA 94111

© 2020 SoloLearn, Inc. All rights reserved.

Send us a message