Right Click to Search

Sunday, January 24, 2025

Limitations of Array in C Programming


Limitations of Array in C Programming :

1 . Static Data
  • Array is Static data Structure
  • Memory Allocated during Compile time.
  • Once Memory is allocated at Compile Time it Cannot be Changed during Run-time
2 . Data types
  • Elements belonging to different data types cannot be stored in array
  • Example : character and integer cannot be stored in single array 
3 . Insertion
  • Inserting element is very difficult because before while inserting we have to create space by shifting other elements . 
4 . Deletion
  • Deletion is not easy because the elements are stored in contiguous memory location.
5 . Bound Checking
  • C does not perform Bound Checking
  • If the array range exceeds then garbage value may get overwritten.
6 . Shortage of Memory
  • Array is Static .
  • Shortage of Memory , if we don't know the size of memory in advance
7 . Wastage of Memory
  • Wastage of Memory , if array of large size is defined

Tags / Keywords : | ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates