what is an array
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anusha
an array is a continous memory of same data type.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / j j ramesh
it is the ordered collection of same type of variable.
accessed by index value range starts from 0
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mukul garg
an array is a collectiom of similar data types .an array
index always stsrt from zero if the size of array is n then
it can store n elements .
int a[5]={1,2,3,4,5};
| Is This Answer Correct ? | 1 Yes | 1 No |
how to count no of words,characters,lines in a paragraph.
main() { printf(5+"Vidyarthi Computers"); }
Write a program to print all the prime numbers with in the given range
8 Answers ABC, College School Exams Tests, TCS,
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
what is the code to display color fonts in the output?
Is main is user defined function?
How can I make sure that my program is the only one accessing a file?
what will happen if you free a pointer twice after allocating memory dynamically ?
While(1) { } when this loop get terminate is it a infinite loop?
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
Write a program in C to reverse a number by recursive function?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.