what is array?
Answers were Sorted based on User's Feedback
Answer / senthiltime
Array is a collection of similar data types.
| Is This Answer Correct ? | 289 Yes | 20 No |
Answer / vignesh1988i
an array ia an homogenous collections of same data types
which occupies continues memory locations .......
| Is This Answer Correct ? | 166 Yes | 31 No |
Answer / anandmayi
An array is a collection of homogenous data elements which are
stored in consecutive memory locations.Always address location
of array starts from 0.
| Is This Answer Correct ? | 143 Yes | 24 No |
Answer / yug
array is a sequential collection of elements of same data
types and those are stored in contiguous memory locations.
| Is This Answer Correct ? | 80 Yes | 15 No |
Answer / manipal singh
Array is a collection of similar data types which stored in
contiguous memory locations
| Is This Answer Correct ? | 65 Yes | 9 No |
Answer / khamseum
array is a collection of data items of same datatype
| Is This Answer Correct ? | 63 Yes | 17 No |
Answer / abilash
It is a set of elements which stored under a single name.
| Is This Answer Correct ? | 72 Yes | 30 No |
Answer / geetha gajendiran
a simple program using array
#include<stdio.h>
void main()
{
int avg,sum=0;
int i;
int pay[30];/*array declaration*/
for(i=0;i<=29;i++)
{
printf("\n enter payment:");
scanf("%d",&pay[i]);/*store data in array*/
}
for(i=0;i<=29;i++)
sum=sum+pay[i];/*read data from an array*/
avg=sum/30;
printf("\n average marks =%d",avg);
}
| Is This Answer Correct ? | 20 Yes | 2 No |
Answer / junaid a mullaji
An array is a method for storing information on multiple
devices.
By
Junaid A. Mullaji
| Is This Answer Correct ? | 50 Yes | 33 No |
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
What is a structure and why it is used?
Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?
program that accepts amount in figures and print that in words
2 Answers Infosys, Lovely Professional University, Wipro,
Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Compare and contrast compilers from interpreters.
dennis ritchie invented C language in AT&T bell laboratory what is the extension of AT&T?
What are file streams?
What are reserved words?
Program to find the absolute value of given integer using Conditional Operators
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}