• Register
0 votes
108 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 2
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,250 points

Related questions

0 votes
2 answers 48 views
48 views
Problem: Declare a 3x3 two-dimensional array of integers named tictactoe.?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
1 answer 37 views
37 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 8.4k points
0 votes
1 answer 14 views
14 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
0 votes
1 answer 19 views
19 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 43 views
43 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 37 views
37 views
Problem: Declare a vector named scores of twenty-five elements of type int?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
1 answer 101 views
101 views
Problem: An array is a(n) ____ of values in computer memory? list accumulation set record
asked Jul 23, 2020 HenryL 620 points
0 votes
1 answer 57 views
57 views
Problem: Regardless of the algorithm being used, a search through an array is always performed? a. from lowest to highest element b. from highest to lowest element c. beginning with the middle element d. using a binary search e. None of these
asked Jul 23, 2020 conner 1.5k points
0 votes
2 answers 25 views
25 views
Problem: Given the array a, write an expression that refers to the first element of the array?
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
1 answer 135 views
135 views
Problems:- Can any one help with one of the query I am facing in declaring variable type Declare a reference variable of type File named myFile. Any Idea
asked Feb 13, 2020 maddi86 5.4k points