array tag

224 questions


1 answers
117 views
0
To determine the length of an array

Is arr._len_() the only function that returns the array length?As far as I know, I've learned that it's not good to write functions or variables that start with an underline (_), but I can't find any ...

2 years ago

1 answers
54 views
0
I have a question about the size of the C array

How do I figure out how many elements can fit in an array in C?I want to know the maximum possible elements, not the size of the array.

2 years ago

1 answers
128 views
0
There is a question about saving the array after entering the c language file.

Hello, I am a student who is learning programming in C language these days.One of the things you have to do is open the data.txt file and save it as an array and solve the problem using those arrays, ...

2 years ago

1 answers
42 views
0
To declare char[] as input/output parameter instead of String in C

Hi, how are you?I am a returning student who is suffering from forgetting everything because I didn't use C and C++ after being discharged from the military.I was asked to write a replacement password...

2 years ago

1 answers
125 views
0
Can you change the array to Set more easily?

I want to change the array to Set in Java. java.util.Arrays.asList(Object[] a); I can use asList, but I want to find a cleaner way.

2 years ago

1 answers
41 views
0
To add elements of an array

How do I add elements to an array in JavaScript?

2 years ago

1 answers
40 views
0
How do I extract random items from a JavaScript array?

var items = Array(523,3452,334,31,...5346);I want to pull out a random item here, but what should I do? I'm writing jQuery right now.

2 years ago

2 answers
38 views
0
c Modification of decimal output program using language array

Using the code below, we're going to go from 1 to 100,000Find the decimal number and the last oneFive numbers 99929, 99961, 99971, 99989, 99991I'd like to print something out.Code void demo_array_3() ...

2 years ago

1 answers
42 views
0
It's a Java array code, but there's a part I don't understand.

class ForExample5 {public static void main(String args[]) { int arr[] = { 10, 20, 30, 40, 50 }; for (int cnt = 0; cnt < arr.length; cnt++) { System.out.println(arr[cnt]); } for (int num : arr) {...

2 years ago

1 answers
43 views
0
I want to reverse the order of the int-type array, how can I do that?

To reverse the order of int-type arrays in the method for(int i = 0; i < validData.length; i++){ int temp = validData[i]; validData[i] = validData[validData.length - i - 1]; validData[validData.len...

2 years ago
« - 17 - »

© 2024 OneMinuteCode. All rights reserved.