what is array?
Answers were Sorted based on User's Feedback
Answer / raja
an array is collection of similar data types, and it
occupies the memory in a sequence of order
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / durga
Array is a group of elements of same data type.
Elements are identified by subscript or indexed.
Java follows zero(0) based indexing.
Name of the array points to the base element of the first array.
Array elements are stored continiously.
All the array elements sharing the common name.
It is an derived data type.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kalidasan
Array is a object, it will allow to store multiple values in
one variable.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / nitian gopal
Array is a collection of similar data, that occupies a
contiuous merory.
Syntax:
type arryname[size];
exm:
int roll[52];
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dhaval patel
An Array is a collection of variables of the same type that
are refered to through a common name.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saroj kumar manik
array is collection of data element in hierchical way in
computer memory.
| Is This Answer Correct ? | 1 Yes | 0 No |
How to avoid buffer overflow?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
When would you use a pointer to a function?
Write a C program that reads a series of strings and prints only those ending in "ed"
What does char * * argv mean in c?
What are the two types of structure?
c program to subtract between two numbers without using '-' sign and subtract function.
Is c is a procedural language?
the operator for exponencation is a.** b.^ c.% d.not available
What is memcpy() function?