Eg:
int main (int argc, char **argv)
{
int i;
printf ("array argv has %d elements:\n", argc);
for (i=0; i return 0; }
To write a C++ program to display the student details using class and array of object.
By using those two functions in your code.
If you are using an array : sort using qsort() then take middle element.
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?
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
To write a C++ program to display the student details using class and array of object.
By using those two functions in your code.
If you are using an array : sort using qsort() then take middle element.
write an assembly language program to find sum of N numbers
i cant write
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?
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
public static int[] reverseArray(int[] array) { int i = 0, j = array.length - 1; for (i = 0; i < array.length / 2; i++, j--) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } return array; }
trytytytytytytytytrf 6 bcvvtgujhy6
Classes are well organised functions in java which help discriminate between two different functions.
#include<stdio.h> #include<conio.h> int arr(int a[]); void main() { int a[10],i; clrscr(); printf("Enter the value for array") for(i=0;i<10;i++) { scanf("%d",&a[i]); } arr(a); getch(); } int arr(int a[10]) { int i; printf("Elements of array\n"); for(i=0;i<10;i++) { printf("\n%d",a[i]); } return 0; }
Reference:cprogramming-bd.com/c_page1.aspx# array programming