One dimensional array, Basic Computer Science

One dimensional array:

 A one-dimensional array  is a structured collection of elements  that can be accessed individually by specifying the position of a component with  index/ subscript  value. The index would let us refer to the corresponding value. value at that .   Like a regular variable, an array must be declared before it is used. A typical declaration for an array in C++ is:  type name [elements];  where type is a valid data type (like int, float...), name is a valid identifier  or variable name and the elements field (which is always enclosed in square brackets []), specifies how many of these elements the array will contain. Therefore, in order to declare an array named as marks, that will store marks for 5 students,   

2160_array.png

Posted Date: 10/23/2012 3:51:04 AM | Location : United States







Related Discussions:- One dimensional array, Assignment Help, Ask Question on One dimensional array, Get Answer, Expert's Help, One dimensional array Discussions

Write discussion on One dimensional array
Your posts are moderated
Related Questions
Qestion 1 What is .Net Framework? Qestion 2 Write short notes on constructors and destructors Qestion 3 Explain boxing and unboxing with examples Qestion 4 What is

Search in Problem Solving: If Artificial intelligence I may inform the other sciences about anything, it is about problem solving and, in specific, how to find solutions to pro

QUESTION (a) For each of the following systems, determine whether the system is (1) stable, (2) causal, (3) linear, (4) time invariant, (5) passive (i) Y[n] = x[-n] (ii)

Environments We have seen that intelligent agents might take into account certain information when   choosing   a   rational   action, by  including information from its sensor

Question 1 Explain different functions of an operating system. Explain the evolution of operating systems Question 2 Explain process creation and process termination Ques

READYMADE VERSUS CUSTOM-MADE SOFTWARE Nursing care software can be in two forms. Software can be custom-made with the help of a computer programmer, suited for a client with v

Question 1 Differentiate between PL/SQL functions and procedures Question 2 Draw the diagram of logical structure of oracle database and explain it in brief Question 3 D

Question 1 Write short notes on                           (a) Office Automatics System                           (b) Transaction Processing System Question 2 What is a too

What is CAI? Explain its pitfalls

Mike sells on the average 15 newspapers per week (Monday – Friday). Find the probability that 2.1 In a given week he will sell all the newspapers