English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to know about char arrays

2006-09-02 19:37:46 · 10 answers · asked by Anonymous in Computers & Internet Programming & Design

10 answers

# Arrays are a collection of items (i.e. ints, floats, chars) whose memory is allocated in a contiguous block of memory.

# Arrays and pointers have a special relationship. This is because arrays use pointers to reference memory locations. Therefore, most of the times, pointer and array references can be used interchangeably.

2006-09-02 21:22:04 · answer #1 · answered by Mohan 5 · 1 0

Array is a collection of elements of the same datatype, referenced using the same name.

Eg
char ac[100]

is an array of 100 characters which have the name 'ac'.
Each element can be accessed by ac[index] where index varies from 0 to 99.

Array and pointers are a really big topic. They cant be covered here atleast.
Above is an example of 1Dimensional array. Array can have more dimensions.

2006-09-02 19:55:31 · answer #2 · answered by Inderpreet 2 · 0 0

Char arrays are used as strings in C/C++

The question is too open for anything more.

2006-09-02 21:01:14 · answer #3 · answered by Andy T 7 · 0 0

Array is a collection of similar elements that are stored in a separate memory. Values in the arrrays can be recaled by three methods call by value call by no and call by referece. Except call by value other are work with combination of pointers. before going to the pointers u should have strong knowledge about arrays.

2006-09-03 02:52:01 · answer #4 · answered by Laxminarayana 2 · 0 0

An array is the similar to self/stack where there will be place to keep any thing [ data ] but accessing is done in with the help of
stack name + slef number that is. array name + index.

all the data is stored under single name

2006-09-02 19:46:17 · answer #5 · answered by royal 3 · 0 0

the character array is group of characters (of their ASCII codes). they're frequently one dimensional. there's no termination image for this. however the string array is group of strings (it is lower back group of characters) it is mandatory to have 2 dimensional array for a string array. String array is terminated with '0'

2016-10-01 06:06:51 · answer #6 · answered by Anonymous · 0 0

The question is too general. You would have to ask something specific to get an answer here.

2006-09-02 19:41:25 · answer #7 · answered by Ken H 4 · 0 0

OMG... this must be a large lesson to teach, better ask your own programming teacher.
I only can give one example, eg. character[100]

2006-09-02 19:44:35 · answer #8 · answered by Caffery 4 · 0 0

and the whole world is beating a path to india's door for these great programmers .......................


hahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

2006-09-03 02:51:16 · answer #9 · answered by bow4bass 4 · 0 0

what about them?? you need to be more specific

2006-09-02 19:41:44 · answer #10 · answered by Nestor 4 · 0 0

fedest.com, questions and answers