array tag

224 questions


1 answers
47 views
0
C language array name question.

Hello, I am a student studying C language.I was curious about the name of the language array.int arr[3] = {99, 77, 55};Assume that you declared an array ofWe know that the variable arr has the address...

2 years ago

1 answers
46 views
0
How do you compare your own elements with each other in a Java array?

int arr[] = new int[6];for (int k = 0; k < 5; k++) { arr[k] = (int)(Math.random()*100); }for(int s = 0;s<5;s++) { while(arr[s] == 0) { arr[s] = (int)(Math.random()*100); } wh...

2 years ago

1 answers
51 views
0
Generate 1000 numbers randomly

I want to create a random number from 1 to 1000.a=[1..1000]puts a.sortIf you do it, 1...It's only 1000 like this...How do I make all the numbers from 1 to 1000?

2 years ago

1 answers
48 views
0
I am looking for a NumPy array function that functions the same as index() in the list

Usually, in Python lists, l = list(1,2,3)l.index(2)I'm using index(x) to find the location of item x, but I can't find this function in NumPyarray

2 years ago

1 answers
74 views
0
Access violation during dynamic assignment of C language two-dimensional array

DYNAMIC ASSIGNMENT OF TWO-Exception occurred (0x00F55146, Project1.exe): 0xC0000005: Access violation occurred while reading location 0xFDFE01You have received the following message:#include<stdio....


1 answers
125 views
0
Can we get the sum of the whole array without using the ear?

array = [123,321,12389]You want to find the total sum of the arrays in an array that stores these integers.Is there any other function like sum() other than adding it directly using each?sum = 0array....

2 years ago

1 answers
41 views
0
Java Multiple Array Copy Question!

While solving the problem yesterday, I wanted to copy the two-dimensional array A to the two-dimensional array B to System.arraycopy and change the content value of B only.But changing the value of ar...

2 years ago

1 answers
43 views
0
I want to merge the two arrays in JavaScript, but I want to combine the duplicate elements into one.

var array1 = [Vijendra,Singh];var array2 = [Singh, Shakya];For example, if it's like this, when I ordered Merge,var array3 = [Vijendra,Singh,Shakya];I want to do it like this. What should I do?

2 years ago

2 answers
127 views
0
Two-dimensional array triangular error question

There's an error in writing down the two-dimensional array cedar coding in the book, but I can't find the reason.import java.util.*; public class Coderunner { public static void main(String[]args){ c...

2 years ago

1 answers
126 views
0
I want to know how to connect two string arrays.

void f(String[] first, String[] second) { String[] both = ??? }If you look at the source, there are String parameters first and second, and I want to combine these two.

2 years ago
« - 13 - »

© 2024 OneMinuteCode. All rights reserved.