answersLogoWhite

0


Best Answer

Traverse the array from index 0 until you find the number. Return the index of that number.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you get position of number from given some number by using array in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does the number of factors determine the number of different rectangular arrays that can be made for given number?

Each factor pair is an array.


Find index number of an given array?

For instance, you have array of type int with a name myArray, and you do not know size of the array. You can use following statement to get it:int arraySize = myArray/myArray[0];arraySize gives you number of elements in myArray.


Write an algorithm to insert an item to a given location in sorted array?

To insert a number N into array A at index I: // Resize A if necessary If A is too small to add a new element then resize A // Right-shift all elements starting from position I For i = A.length to I A[i] = A[i - 1] // Insert new item A[I] = N


How do you sort the given contents of an array?

You would sort the given elements of an array by a bubble sort or heap sort code!!


Index of an element in array?

An array is a group of related elements, with a common variable name. The index is a number that indicates the position of an element within an array: the 1st. element, the 2nd. element, etc. (many languages start counting at zero).


The definition of rectangular array?

An arrangement of objects into rows and columns that form a rectangle. All rows and columns must be filled . Each row has the same number of objects and each column has the same number of objects. -Danielle German Grade 6


What medal is given at the Olympics for coming out number one position?

A gold medal.


What information can be given from the atoms atomic number?

Number of protons can be estimated. Its position in periodic table can be estimated.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


What does array map do in php?

The array_map function in PHP loops over each elements of the passed array(s), and runs the given function. It then returns a new array that contains the values returned by each call to the given function.


Boron is one position to the left of carbon on the periodic table. The atomic number of carbon is 6. Given its position on the periodic table what is the atomic number of boron?

pp


Boron is one position to the left of carbon on the periodic table the atomic number of carbon is 6 given its position on the periodic table what is the atomic number of boron?

5