48 Views

what is an array in c ? explain.


V.sandhya 13th Feb, 2022
Answers (2)
Sumedha Bhattacharya 13th Feb, 2022

Dear Student ,

Array is generally  the collection of homogeneous data types in linear/contiguous memory location in a sequential manner .  The data types array accepts to store is int,float, char , double etc.

As an example, we can say .. to store the roll no wise students name through C prog, we can use a array .

Array Advantage:

  • Time Optimization
  • Easy to traverse
  • Sorting and random access

Disadvantage :

In Array size is fixed as at the time of declaration of array , we must initialize with the array size.


To know more about array , refer this C programming course article :

https://www.careers360.com/courses-certifications/udemy-complete-c-programming-course-c-language-for-students-course

Hope this helps !


keshav kumar 13th Feb, 2022

Hi,

Hope you are doing great.

An array is the collection of various types of data items stored at various locations. They are the derived data type in the C language. which can store the primitive type of data such as int, char, double, float, etc. If you want to store similar elements then the C array proves to be very beneficial. By using the array, we can access the elements easily. Only a few lines of code are required to access the elements of the array.

Some of the advantages of using C Array are:

  • Code Optimization.
  • Ease of traversing
  • Ease of sorting
  • Random Access

Hope this helps.


Related Questions

MAHE Manipal M.Tech 2025
Apply
NAAC A++ Accredited | Accorded institution of Eminence by Govt. of India | NIRF Rank #4
Graphic Era (Deemed to be Uni...
Apply
NAAC A+ Grade | Among top 100 universities of India (NIRF 2024) | 40 crore+ scholarships distributed
Indrashil University | B.Tech...
Apply
Apply for B.Tech | AICTE Aproved | UGC Recognized | International Collaborations for Global Edge | 100% Placement Assistance
JSS University Mysore BBA Adm...
Apply
NAAC A++ Accredited| Ranked #24 in University Category by NIRF
Sharda University Admissions ...
Apply
North India's Largest Educational Group | NIRF Ranked 86 | NAAC A+ Grade | Highest Package 1.6 Cr | Scholarships upto 100% | Pay Rs.500 instead of ...
UPES B.Tech Admissions 2025
Apply
Ranked #42 among Engineering colleges in India by NIRF | Highest Package 1.3 CR , 100% Placements | Last Date to Apply: 18th May
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books