You are not logged in. Please login at www.codechef.com to post your questions!

×

pointer structure to a pointer structure

How to access elements of a dynamically allocated structure(node type in link list) via a pointer structure (of previous type). This pointer structure is a element of a pointer structure and made to point to the dynamically allocated structure.I am not able to use (l->connect)->idn , it's showing an error.here, l is a pointer structure with an element connect which is a pointer structure to a list node.I am trying to access idn element of that node via l.

asked 21 Aug '13, 19:45

nsingh1995's gravatar image

0★nsingh1995
26236
accept rate: 0%


I didn't exactly understand your question. Could you please add the code snippet you are referring to, which gave you error. The declarations of the structure would also help to understand.

link

answered 21 Aug '13, 22:48

tijoforyou's gravatar image

2★tijoforyou
4.2k52364
accept rate: 15%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,491
×1,409
×1,236
×711
×10

question asked: 21 Aug '13, 19:45

question was seen: 871 times

last updated: 21 Aug '13, 22:48