Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1004401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:07:42+00:00 2026-05-16T08:07:42+00:00

what is the difference between array and list?

  • 0

what is the difference between array and list?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:07:43+00:00Added an answer on May 16, 2026 at 8:07 am

    In C, an array is a fixed-size region of contiguous storage containing multiple objects, one after the other. This array is an “object” in the meaning which C gives to the word – basically just some memory that represents something. An object could just be an int.

    You can distinguish slightly between array objects, and array types. Often people use array objects which are allocated with malloc, and used via a pointer to the first element. But C does also have specific types for arrays of different sizes, and also for variable-length-arrays, whose size is set when they are created. VLAs have a slightly misleading name: the size is only “variable” in the sense that it isn’t fixed at compile time. It can’t change during the lifetime of the object.

    So, when I say an array is fixed-size I mean that the size cannot change once the array is created, and this includes VLAs. There is realloc, which logically returns a pointer to a new array that replaces the old one, but can sometimes return the same address passed in, having changed the size of the array in place. realloc operates on memory allocations, not on arrays in general.

    That’s what an array is. The C programming language doesn’t define anything called a list. Can’t really compare something which is well defined, with something that isn’t defined 😉 Usually “list” would mean a linked list, but in some contexts or in other languages it means other things.

    For that matter, in other languages “array” could mean other things, although I can’t immediately think of a language where it means anything very different from a C array.

    If your question really has nothing to do with C, and is a language-agnostic data-structures question, “what is the difference between an array and a linked list?”, then it’s a duplicate of this:

    Array versus linked-list

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Primitive Array vs ArrayList What is the difference between List and Array
Possible Duplicate: What's the difference between IEnumerable and Array, IList and List? What's the
What's the difference between defining a arraylist like this: List list = new LinkedList();
Is there a difference between the following two : ArrayList list = getData(); public
Is there any difference between Array.Copy and CopyTo ? Are they just overloaded?
What is difference between the following two function definitions? A 2D array is being
what is the difference between: String a[] and List<String> a ? Is String a[]
What is the difference between ArrayList and List in VB.NET
Difference between list & arraylist in android. How can i sort out arraylist?
What is the difference between List list = new ArrayList<Integer>(); And List<Integer> list =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.