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 5973125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:45:21+00:00 2026-05-22T20:45:21+00:00

When I was reading about Linked list, I came to know that the structure

  • 0

When I was reading about Linked list, I came to know that the structure for linked list as

Struct node{           
   Struct node *next;  
   int value;  
}

Why is the Struct node *next? Why cant it just be an integer pointer? Like below

Struct node{   
   int *next;  
   int value;  
}

why can’t this hold the next node’s address? Can anyone please give me explanation?

  • 1 1 Answer
  • 0 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-22T20:45:22+00:00Added an answer on May 22, 2026 at 8:45 pm

    Why is the Struct node *next? Why cant
    it just be an integer pointer?

    Because then you would be pointing to the address of the next integer. This could be used to retrieve the value of the next int, but nothing more, so from there on onward, you would be stuck.

    By linking nodes together, which hold integer values, you can traverse the nodes and retrieve the int values.

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

Sidebar

Related Questions

When reading about pipes in Advanced Programming in the UNIX Environment, I noticed that
I've been reading Ulrich Drepper's, What every programmer should know about memory and in
I was reading about the template name resolution here . Just to get the
I have been reading a lot about test-driven development and decided that I want
I'm reading about linked lists and their implementation in C on Wikipedia . I
I keep reading that if the DLL is linked against another version of the
I was just reading this thread and it occurred to me that there is
I'm reading a textbook and it's talking about hash-list implementation. With regard to the
I've been reading about foreach and list iteration, and I understand how to set
I've been reading about OOP in C but I never liked how you can't

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.