answersLogoWhite

0

Well the most prolific answer to this query would be the use of pointers.Use a pointer and allocate it to the array of interest and start printing.

User Avatar

Wiki User

18y ago

What else can I help you with?

Related Questions

Is it possible to print matrix without using array?

Yes but why.


How do you work out the biggest number in an array without using the max function in Python 3?

To find the biggest number in an array without using the max function, you can initialize a variable to hold the largest number, typically starting with the first element of the array. Then, iterate through the array using a loop, and for each element, compare it with the current largest number. If the current element is greater, update the largest number. Finally, after the loop, the variable will contain the largest number in the array. Here’s a simple example: arr = [3, 5, 2, 9, 1] largest = arr[0] for num in arr: if num > largest: largest = num print(largest) # Output: 9


Where are the subscripts located in a chemical formula?

In small print on the right of the chemical that it modifys


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Write a java program to print the result in the series?

If you have the series stored in an array, you loop through the array and print each array element in turn. Another possibility is to print out the numbers in the series as you generate them. In that case, you may not need to store anything (depending on the series, of course).


Program to print all the even numbers of an array in visual basic?

find even number in array


How to print the reverse of an array without using backward loop?

int youArray[arraysize] = {...};...for (int i = 1; i


How do you print an array in JavaScript without using a loop?

var fruits = ["Banana", "Orange", "Apple", "Mango"]; var x=fruits.valueOf(); alert(x);


How do you print element in array using javascript?

You would insert this command right after your array values have been specified.document.write(name of array[Number on array this item is, starts at 0])


Write a program to reverse the given string?

Use for loop declare string array str[] and string variable l= string length of string array j=l for i=0 to i=l/2 then temp=str[i] str[i]=str[j-1] str[j-1]=temp j=j-1 now print str array it will be reversed


How do you write a program in java to read ten numbers and print sum of ten integers?

Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.


How do you print a number as on or more literal words in PHP?

Create an array like so $numbers = array(); $numbers['0'] = "ZERO"; $numbers['1'] = "ONE"; and so on.. till you decide that's enough then to print it, echo the array with the desired key like so.. Example I print 5 in words echo $numbers['5']; which would print FIVE Good luck


What is the logic of finding minimum in an array programming c?

at first a temporary variable is taken.after this the first array element is assign to this temporary varable.if the nth element in array. write a loop which is run in n-1 times.within the loop we check the condition temp=a[0]; int j=1; for(i=0;i<=n-1;i++) { if(temp>a[j]) temp=a[j]; j++; } print temp;


Prog to display array element?

Java solutionFortunately, Java has a number of useful functions in the java.util.Arrays class for us.A call to...System.out.println(java.util.Arrays.toString(array));...will print out any array.


Why you cant print the variable without method?

becauge when we want a value store in then we use a variable and in which wecan store a value then this value use a hol the proram and we solved a problem but every funcation depand on a method.


Write a c program to find the maximum of two numbers and print out with its position?

maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know


Print array in reverse order vb6?

Well maybe you can make another form show() but make its opacity 0 so people wont know the secret behind it, no the other form, make it display the array backwards and use the print dialog to print the hidden form.


What is memory variable. how can you create array memory variable?

You probably mean pointer variable rather than memory variable. You create an array of pointer variables just as you would an array of any other type: #include<stdio.h> #include<malloc.h> // Fixed-length arrays: void foo1 (void) { const unsigned n = 10; unsigned i; // an array of n int types int a[n]; // an array of n pointer-to-int types int* b[n]; // assign the address of each indexed element in a[] to the corresponding pointer element in b[] for (i=0; i<n; ++i) b[i] = &a[i]; // assign values to integers in a[] via pointers in b[] for (i=0; i<n; ++i) *b[i] = i * 10; // print the values in a[] printf ("a[] = {"); for (i=0; i<n; ++i) printf("%d%s", a[i], i<n-1?", ":""); printf ("}\n"); // print the values pointed to by b[] printf ("b[] = {"); for (i=0; i<n; ++i) printf("%d%s", *b[i], i<n-1?", ":""); printf ("}\n"); } // Variable-length arrays: void foo2 (unsigned n) { unsigned i; // an array of n int types int* a = (int*) malloc (n * sizeof (int)); // an array of n pointer-to-int types int** b = (int**) malloc (n * sizeof (int*)); // assign the address of each indexed element in a[] to the corresponding pointer element in b[] for (i=0; i<n; ++i) b[i] = &a[i]; // assign values to integers in a[] via pointers in b[] for (i=0; i<n; ++i) *b[i] = i * 10; // print the values in a[] printf ("a[] = {"); for (i=0; i<n; ++i) printf("%d%s", a[i], i<n-1?", ":""); printf ("}\n"); // print the values pointed to by b[] printf ("b[] = {"); for (i=0; i<n; ++i) printf("%d%s", *b[i], i<n-1?", ":""); printf ("}\n"); // release allocated resources free (b); free (a); } int main () { foo1 (); foo2 (10); return 0; }


How to print in VB?

it's just Print (text here) or in a text box text1.text = (text here) in vb 6.0 and in vb.net it's just console.writeline (text here) to print and variable = console.readline() to process a variable hope that helps


How do you print an array in php?

There are a few methods however the following is the method that will allow you to do the most with the information afterwards. foreach($array as $key => $value){ echo '[' . $key . '] ' . $value; #$key becomes the array key and value because what the current array item has inside. }