How can define an array, C/C++ Programming

Assignment Help:

Q: How can Define an Array?

An Array is defined in much the alike manner as ordinary variables except that every array name must be accompanied by a size specification (that is, the number of elements). For a one-dimensional array the size is précised by a positive integer expression enclosed in square brackets. The expression is typically written as a positive integer constant.

In common terms a one-dimensional array definition may be expressed as

storage-class data - type array - name [expression];

Where storage-class refers to the storage class of the array, array - name is the array name, data-type is the data type, and expression is a positive valued expression which indicates the number of array elements. The storage - class is optional.


Related Discussions:- How can define an array

C program for select the char which u want , C Program for SELECT THE CHAR ...

C Program for SELECT THE CHAR WHICH U WANT #include stdio.h> #include conio.h> void main() {             void substr(char[], int *, int *);           int a,b

Stack, c++ program to to implement multiple stacks using single array

c++ program to to implement multiple stacks using single array

C program to create, Aim: To implement a program to create, update & displ...

Aim: To implement a program to create, update & display account & admin record of person using display account & admin records of person using virtual base class.. Code:

What are compound statements, What are compound statements? - Compound ...

What are compound statements? - Compound statements are made up of two or more program statements that are executed together. They may be executed with a loop. - Curly brack

Required, requiredrequiredrequiredrequiredrequiredrequiredrequiredrequired

requiredrequiredrequiredrequiredrequiredrequiredrequiredrequired

Overloading binary operators using friend function, Overloading Binary Oper...

Overloading Binary Operators Using Friend Function class SI {float i,p,n,r,a; public: SI(){}; SI(int gp,int gn, int gr); void putdata(void); friend SI operato

What is memory allocation, What is memory allocation? Memory Allocation...

What is memory allocation? Memory Allocation : It is the method of allocating memory storage to program in such that the program can be run.

Advanced, how to create a shopping cart

how to create a shopping cart

Write a c program to input your full forename, Write a C program to input y...

Write a C program to input your full forename and full surname. e.g James McCarren and display in one string your complete initial and surname i.e J McCarren . Your initial should

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd