anoibunteni gniwollo od obiano bie ten mia Onism ini Solutio
Solution
1) What is an Array?
An array is a collection of data that holds fixed number of values of same type.the size and type of arrays cannot be changed after its declaration.the array must be defined before it can be used to store information
 Syntax: Datatype ArrayName [Const Int Expression ];
Eg: int arr[100];
2) Mention three different instructions to create one dimensional array?
A one dimensional array in c++ is also refered to as a list.this one dimensional array declaration has the foramt
 <data type><array name>[<size>]
 To reference an element the syntax is
 <array name>[<index>]
we can declare a single-dimensional array of five integers as shown below
3) what is the advantage to use pointers to create an array?
Answer) By using pointer variable we can implement dynamic memory allocation.this pointers are more efficient in handling Arrays and structure.it reduces length and the program execution time.
4) what is the random numbers in c++?
Answer) The number is generated by an algorithm that returns a sequence of apparently non-related numbers each time it is called Random number. This C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need to include the <cstdlib> header. In order to generate a random number we use the rand() function
5) what role does the seed have in the generation of random numbers in C++?
Answer) In Order to generate hundreds to thousands of random numbers, we are using a \"seed\".This seed can help for where the random numbers start from.
Syntax:
 srand( seed );
 seed can be any unsigned integer entered manually by the user or initialized through the program
6) what is a pointer?
Answer) A pointer is a variable that holds a memory address. This address is the location of another object in memory. That is, if one variable contains the address of another variable, the first variable is said to point to the second.The general form of declaring a pointer variable is
type *name;
7) #include <iostream>
using namespace std;
int main()
{
int a=4;
int *p=&a;
cout << *p << endl;
return 0;
 }
Output : 4
Answer ) The value is showed by the computer for the instruction cout << *p << endl; is 4


