• Register
0 votes
30 views

Problem:

Can any one help me in array programming?
 
What happen when an individual element of an array is passed to a method?
7 5 3
5,380 points

1 Answer

0 votes

Solution:

The correct answer for 

When an individual element of an array is passed to a method: is 

the method does not have direct access to the original array.

This will help you.

7 4 2
10,530 points

Related questions

0 votes
1 answer 1 view
1 vote
1 answer 13 views
13 views
Problem : I am very new to programming. I have recently started learning C programming. Please find below the one way of initializing the array: I have one doubt about my above program : Which of the following is not a correct way to initialize an array? int n[ 5 ] = { 0, 7, 0, 3, 8, 2 }; int m[3] = ... [1] 15};     printf("m[0] = %d  m[1] = %d   m[2] = %d\n", m[0], m[1], m[2]);     return 0; }
asked Apr 27 stewart 4k points
0 votes
1 answer 9 views
9 views
I have managed to do this: when I enter 7 numbers from 1 to 7 it works for me, but when I enter larger numbers it does not work for me .. why? Here is the code that I have done so far .. I would appreciate your help .. The question I have is: in which part ... cout << "Sort by Ascending Exchange:" << std :: endl; printArray (temporaryArrangement, sizeArray); std :: cout << std :: endl; return 0; }
asked Aug 15 game 4.6k points
1 vote
1 answer 17 views
17 views
Problem: I was doing my coding practice of python using numpy. I wrote this code: def create_traini_data(): trainingday_data = [1100] for img in tqdm(os.listdir(TRAIN_DIR)): label = label_img(img) path = os.path.join(TRAIN_DIR, img) training_data.append([ ... = create_traini_data() traini = traini_data[:-400] It throws error: ValueError: setting an array element with a sequence Can anybody help?
asked Apr 3 LizzyM 6.1k points
0 votes
1 answer 9 views
9 views
I noticed that in the loop of STATEMENT 1 we put (* p ++) and supposedly this represents that it is going to loop through an element of the array. But I start to think that the logical thing would be that if my pointer is starting at position [0]; in the loop of DECLARATION 1 I would start saving it in position ... position" << i << ":"; cin >> * p;         * p ++;     } * /          return 0; }
asked Aug 14 game 4.6k points