answersLogoWhite

0


Best Answer

int main (int argc, char *argv[])

{

int i;

for (i=0; i<argc; ++i) printf ("%2d: %s\n", i, argv[i]);

return 0;

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you give an example of array program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you give an example of array using character variable in c program?

the example of array over charcter variables is char ["string"]


Explain the design and application of arrays and how an array simplifies program development?

I need an example of a real-world array


Array implementation of priority queue example program in c plus plus?

yes


Give a business example of how loops can be beneficial in a program?

Give a business example of how loops can be beneficial in a program?


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?


Give an example of an email program?

palawan


A simple java program for searching numbers?

Where, exactly, do you want to search? If it is in an array, you can loop through the array; for example like this: boolean found = false; for (int i = 0; i &lt;= myArray.size &amp;&amp; !found; i++) { if (myArray[i] = theNumber) { found = true } } I didn't test this, and it may have syntax errors, but it should give you the general idea.


Sorting an array in PHP without using sort function?

plz as soon as possible give me the program for shorting an array in asscending order without using any sort function in c++


How do you use in array?

cod a program student degree array in c language


C program for storage representation of 2-D array?

Wright a 'C' program for storage representation of 2-D array.


What are benefits of array in java?

array example in java


Why is string type array used in the parameter of the main method?

A user can run a program from the operating system command line, passing parameters. For example, in the case of a Java program: Java MyClass John Doe 1 2 3 In this example, the program "Java.exe" receives all the parameters starting with "MyClass" - a total of 6 parameters in this example. Then, the JVM runs the class "MyClass", and this class receives the remaining five parameters - as an array of strings. You can pass any information to a program this way; for example, a program that processes files might receive the file name, or a directory (folder) name as a parameter.