• Register
0 votes
169 views

Problem:

Declare and instantiate a 3x3 two-dimensional array of integers named tictactoe?

5 3 2
7,520 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution:

int tictactoe[] []= new int [3][3];

6 4 3
14,580 points
0 votes
A variety of array is known as 2D array. The two dimensional (2D) array in C writing computer programs is otherwise called network. A framework can be spoken to as a table of lines and segments. Example :int tictactoe[] []= new int [3][3];
A 2D array has a sort, for example, int[][] or String[][], with two sets of square sections. The components of a 2D array are organized in lines and sections, and the new administrator for 2D array determines both the number of lines and the number of segments.
15 10 7
8,940 points

Related questions

0 votes
2 answers 79 views
79 views
Problem: Declare a 3x3 two-dimensional array of integers named tictactoe.?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
1 answer 7 views
7 views
Problem: Declare a vector named scores of twenty-five elements of type int?
asked Apr 6 niyatiry 3.9k points
0 votes
0 answers 7 views
7 views
Problem: How does eclipse must declare a named package?
asked Apr 20 niyatiry 3.9k points
0 votes
1 answer 46 views
46 views
I need to make a [console] program that gets the full names of five people, as well as their three grades to calculate their average. Instead of declaring variable by variable string nom1, nom2 //... int cal1, cal2 //... I want to make a for loop (or ... at the end because "the identifiers are not defined". Is it possible to achieve this, or is it something that not even magic can achieve?
asked Nov 8, 2020 sasha 16.2k points
0 votes
1 answer 15 views
15 views
I need to make a [console] program that gets the full names of five people, as well as their three grades to calculate their average. Instead of declaring variable by variable string nom1, nom2 // ... int cal1, cal2 // ... I want to make a for loop (or ... at the end because "the identifiers are not defined". Is it possible to achieve this, or is it something that not even magic can achieve?
asked Aug 15, 2020 game 4.6k points
1 vote
1 answer 12 views
12 views
Problem: What is the difference between these two? Difference between one dimensional and two dimensional array in c.
asked Mar 25 PkGuy 23.5k points
0 votes
1 answer 24 views
24 views
My problem to solve is this: Make a structure called student, in which you will have the fields: name, age, average and data will be requested from the user of how many students will enter and check which of them has the best average and print it, use pointers. I would ... struct Student {      char name [30];      int age;      average float; } student [nStudents], * studentPointer = student;
asked Aug 14, 2020 game 4.6k points
0 votes
1 answer 82 views
82 views
Problems: I am new in programming and my logic is not good, can anyone give the right solution? How can we declare an array named scores of twenty-five elements of type int?
asked Feb 13, 2020 maddi86 5.4k points
0 votes
1 answer 10 views
10 views
Problem: I had a homework problem that was as follows:A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is true if the elements of the first row are all equal. I was just wondering why both of these solutions are correct as it seems like his is redundant and should be wrong.
asked Apr 26 Humaira ahmed 50.7k points
0 votes
1 answer 6 views
6 views
Problem: Can anyone tell me how to “declare a vector named scores of twenty-five elements of type int.” Any input will be much appreciated.
asked Apr 6 munim01 21k points