Q: What is the very first element of array 'argv' is good for?
A: It contains the name of the actual program. Try it: printf ("I am '%s'\n", argv[0]);
Depends on the programming language, some languages may have already initialize an array with null (or the default value of the type), some of them require explicitly assignments by stepping through each element of that array, and assigning them with null. (imperative languages)
Depends on the language. For C, no you don't. You can type blank brackets (int Arr[]) when declaring the array, or you can just use a pointer (int* Arr). Both will allow you to use the variable as an array without having to declare the specific size. Hope this answers your question. In Java, an array is an object, and one which is dynamically allocated space. The default constructor does not require a size be specified.
AnswerWhat is an array: In programming languages, an array is a way of storing several items (such as integers). These items must have the same type (only integers, only strings, ...) because an array can't store different items. Every item in an array has a number so the programmer can get the item by using that number. This number is called the index. In some programming languages, the first item has index 0, the second item has index 1 and so on. But in some languages, the first item has index 1 (and then 2, 3, ...).
No, array subscripts cannot be -1 in most programming languages. Array indices typically start at 0, meaning valid subscripts are non-negative integers. Using a negative index like -1 would usually result in an error or undefined behavior, depending on the language being used. Some languages, like Python, allow negative indexing to access elements from the end of the array, but this is not the case for all languages.
In most programming languages, the starting index of a matrix or array is typically 0. This means that the first element is accessed using index 0, followed by index 1 for the second element, and so on. However, some languages, like MATLAB and Fortran, use 1-based indexing, where the first element is accessed with index 1. It's important to be aware of the indexing convention used in the specific programming language you are working with.
The answer will depend on what the problem is: some can be solved using an array but for others, arrays are a complete waste of time.
give some solved question paper
Depends on the programming language, some languages may have already initialize an array with null (or the default value of the type), some of them require explicitly assignments by stepping through each element of that array, and assigning them with null. (imperative languages)
Depends on the language. For C, no you don't. You can type blank brackets (int Arr[]) when declaring the array, or you can just use a pointer (int* Arr). Both will allow you to use the variable as an array without having to declare the specific size. Hope this answers your question. In Java, an array is an object, and one which is dynamically allocated space. The default constructor does not require a size be specified.
You cannot do this easily in C programming. Arrays in C always start with index 0. If you must use a negative array index, you can do that by allocating an array, and then pointing to an element within the array. Say you allocate an array 10 ints long, named a; then set b = &a[5]. Then b[-4] = a[1]. However, this is extremely bad programming practice and is almost certain to cause data corruption. Some compilers will treat array indices as unsigned, also, so that when you specify b[-4], the compiler will internally simplify that to b[65532] and your program will crash.
An array is an aggregate of data elements of the same type. Arrays are allocated in contiguous memory. An element of an array can be another array type, also known as a multi-dimensional array.
AnswerWhat is an array: In programming languages, an array is a way of storing several items (such as integers). These items must have the same type (only integers, only strings, ...) because an array can't store different items. Every item in an array has a number so the programmer can get the item by using that number. This number is called the index. In some programming languages, the first item has index 0, the second item has index 1 and so on. But in some languages, the first item has index 1 (and then 2, 3, ...).
Quantitative Techniques in Business solved question
In some programming languages, like C, you can pass the new method (or function) an address pointer to the first element in the array. As long as you don't leave the scope of the method the array was created in, the array will remain valid. In other languages that don't support memory addresses, like FORTRAN, it must be done by making the array global.
That is also known as "FOR EACH", though in some programming languages it is simply written as FOR. It means that a group of statements are to be executed once FOR EVERY item in a set. For example (depending on the programming language), that might be once for every array element.
The idea of an array is to store data for different related items, using a single variable name. The different items are distinguished by a subscript (a number, which may also be a variable or some other expression)
C is the programming language (some) games are written in, your question makes no sense.