what is the use of a array in c
Answers were Sorted based on User's Feedback
An array is a collection of similar elements(data types).
These similar elements could be all ints, or all floats, or
all chars, etc.
In an array all elements must e of same types.
In simple language, Arrays are used to give 'one' variable
the power to hold 'more than 1' values.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sameer
to have a collection of similar dta types in one varible
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saravanan j (srm universi
array concept is used to locate the memory allocation for
the variables
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abeera amin
array are data structure in which identical data type are
stored.and have contiguous area of memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shruti
Array is a collection of homogeneous data-types..
| Is This Answer Correct ? | 0 Yes | 1 No |
Write a program to print the prime numbers from 1 to 100?
what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }
What is #line?
hi , please send me NIC written test papers to sbabavalli@gmail.com
What is a char c?
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4
#include<stdio.h> { printf("Hello"); } how compile time affects when we add additional header file <conio.h>.
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
write a program to arrange the contents of a 1D array in ascending order
Stimulate calculator using Switch-case-default statement for two numbers
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
difference between string and array?