answersLogoWhite

0


Best Answer

You can do 4 rows and 13 columns and you get 52.

product = sizeof (char [4][13]);

of course it is just a joke, in actual code you write

product = 4*13;

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you use an array to find the product of 4 x 13?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you get the array values in C plus plus?

Use the array suffix operator ([]), or use a pointer offset from the start of the array, such that an offset of 1 is equivalent to the size of an array element (all elements in an array must be of equal size). The latter method is what actually goes on behind the scenes when using the array suffix operator, but the former is generally easier to use.


How do you initialise a two dimentional array?

C provides rectangular multidimensional arrays. In C, a two-dimensional array is really a one-dimensional array, each of whose elements is an array. An array is initialized by a list of initializations in braces; each row of a two-dimensional array is initialized by a corresponding sub-list. Example of two dimensional array initialization: char array_example[2][4] = { {11, 12, 13, 14}, {21, 22, 23, 24} };


C progamme for conversion of Celsius to Fahrenheit using array?

main void void void (void) { float temp1 [13]= {1,4,2,3,4,5,7,88,9,4,3,23,12};


What is a C plus plus program to change 5x5 array to 1x25 array?

An array is simply a contiguous block of memory. The length of that memory is the product of all its dimensions multiplied by the size of its type. Thus a 5x5 array is exactly the same as a 1x25 array. The only difference is in how you refer to each element. The following code demonstrates how we can remap a 5x5 array to a 1x25 array, simply by pointing at the first element. Note that we haven't actually changed the array, nor have we copied it to new memory. We're simply interpreting the exact same memory in two different ways. #include<iostream> #include<iomanip> int main() { int x[5][5] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }; // treat as 5x5 array: for (int a=0; a<5; ++a) { for (int b=0; b<5; ++b) { std::cout<<std::setw (3)<<x[a][b]; } std::cout<<'\n'; } std::cout<<std::endl; // treat as one-dimensional array (remap) int* y = x[0]; for (int c=0; c<25; ++c) std::cout<<std::setw (3)<<y[c]; std::cout<<'\n'<<std::endl; } Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


What object in c plus plus?

An object is an instance of a class. A class is a user-defined data type from which we can instantiate objects of that class. We often use the terms object and variable interchangeably, however the term variable specifically refers to a named object (objects instantiated at compile time), as opposed to anonymous objects (instantiated at runtime). Built-in data types such as int, double and pointer types are not classes, thus instances of these types are simply known as variables. Built-in types are also part of the language (hence they are built-in) thus we don't need to include a header or a type definition in order to use them; they are immediately available. But to use an object we must first define its class or include the appropriate header that defines the class.

Related questions

What array can you use that represents 13 a prime number?

1 x 13


Find the product of 13 and 3?

13*3= 39


What is a prime number and how do to find them?

13 is a prime number because u cant find 13 as a product on a multiplication!


Find the product of the square of 1/2 and the sun of 13 and 19?

The product of the square of 1/2 and the sum of 13 and 19 is 169/4.


What is the product of 15 and 13?

Next time use a calculator.15 * 13 = 195


If 13 is HCF of 2 number whose product is 1690 find the LCM?

To find the LCM, you multiply the numbers together and then divide by the HCF. In this case, we don't know the numbers, but we have the HCF (13) and we have the product of the numbers (1690). Thus all you do is divide 1690 by 13 to get: 1690/13 = 130 And thus the LCM of two numbers whose hcf is 13 and product is 1690 is 130.


Find the product when the sum of 59 and 46 is multiplied. By their difference?

59 minus 46 = 13 and 13 times 13 = 169


How do you get the array values in C plus plus?

Use the array suffix operator ([]), or use a pointer offset from the start of the array, such that an offset of 1 is equivalent to the size of an array element (all elements in an array must be of equal size). The latter method is what actually goes on behind the scenes when using the array suffix operator, but the former is generally easier to use.


Find two consecutive negative integers whose product is 182?

-13*-14 = 182


Find two consecutive integers that have a product of 182?

13 and 14. Also negative 13 and negative 14.


Find 208 as a product of prime factors?

2*2*2*2*13 = 208 or 24*13 = 208


What is the product of two consecutive odd integers is 195 find the intgers?

13 & 15