answersLogoWhite

0

Palakumpasang 2 2

Updated: 9/14/2023
User Avatar

Wiki User

14y ago

Best Answer

palukumpasang 2/2

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Palakumpasang 2 2
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How many subscript or dimension of array are supported by c program?

The standard does not specify a limit, it is implementation defined. The practical limit on my system is 30 dimensions. You can easily determine the upper limit by instantiating a static array of char (the smallest data type), where each dimension is 2 (the minimum size for any dimension). static char ch[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2] = {0}; // ok static char no[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2] = {0}; // no can do! Note that if you allocate on the stack (non-static allocation), the limit drops to just 19 dimensions. Note also that a dimension of size 1 isn't an array. You can easily have hundreds of dimensions all of size 1 in an array, but there would only ever be 1 element in the entire array. Thus any dimension of 1 in any array (no matter which dimension) becomes redundant in terms of the array's size. For example, the following definitions are all exactly the same size: char ch[3][2][1] = {0}; char ch[3][1][2] = {0}; char ch[1][3][2] = {0}; char ch[3][2] = {0};


If else else sample programs java?

if (i==2) if (j==2) System.out.println ("i==2 and j==2"); else System.out.println ("i==2 and j<>2"); else System.out.println ("i<>2");


How do You create a n by n matrix in C where each element contains two numbers?

It is not very difficult if you can image how it looks. In your case what you need is rectangular Cuboid with height N, width N and depth 2. Here is example in C: /* There N = 2 */ int matrix[2][2][2] = 1, 2}, {1, 2}}, {{1, 2}, {1, 2; /* There N = 3 */ int matrix[3][3][2] = 1, 2}, {1, 2}, {1, 2}}, {{1, 2}, {1, 2}, {1, 2}}, {{1, 2}, {1, 2}, {1, 2; These two are statical, it is possible to create dynamical cuboid, but it is more complex and requires knowledge of pointer and memory management.


How many tags are in a regular element?

2


What is floor division in Python?

Floor division is division where the answer is rounded down. For example, 5/2 in floor division is not 2.5, but 2. In Python 2, floor division is the default. In Python 3, the floor division operator is //. Python 2: >>> 5/2 2 >>> 5.0/2 2.5 Python 3: >>> 5/2 2.5 >>> 5//2 2