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.
Yes but why.
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?
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).
find even number in array
var fruits = ["Banana", "Orange", "Apple", "Mango"]; var x=fruits.valueOf(); alert(x);
Yes but why.
In small print on the right of the chemical that it modifys
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?
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).
find even number in array
var fruits = ["Banana", "Orange", "Apple", "Mango"]; var x=fruits.valueOf(); alert(x);
int youArray[arraysize] = {...};...for (int i = 1; i
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])
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
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.
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
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;