pointers in C

what is the main role in pointers in c?

Page 1 of 1

5 Replies - 2599 Views - Last Post: 18 January 2016 - 12:40 AM Rate Topic: ****- 1 Votes

#1 veerendranadh.killampalli  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-February 09

pointers in C

Post icon  Posted 24 February 2009 - 07:04 AM

what is the main role in pointers in c?
i have problem implement pointers with arrays in C. please explain for me.
Is This A Good Question/Topic? 0
  • +

Replies To: pointers in C

#2 horace  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 617
  • View blog
  • Posts: 3,230
  • Joined: 25-October 06

Re: pointers in C

Posted 24 February 2009 - 07:29 AM

View Postveerendranadh.killampalli, on 24 Feb, 2009 - 01:04 PM, said:

what is the main role in pointers in c?
i have problem implement pointers with arrays in C. please explain for me.

have look at the tutorial
http://www.cplusplus...l/pointers.html

there is a section on arrays and pointers
Was This Post Helpful? 0
  • +
  • -

#3 Bench  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 938
  • View blog
  • Posts: 2,462
  • Joined: 20-August 07

Re: pointers in C

Posted 24 February 2009 - 08:32 AM

Here's a few good quality links on the subject of pointers

http://www.daweidesi...in/pointers.php
http://www.eternally...t_pointers.aspx
http://www.augustcou...torial/ptr.html
http://cslibrary.stanford.edu/104/

This post has been edited by Bench: 24 February 2009 - 08:38 AM

Was This Post Helpful? 0
  • +
  • -

#4 freedom_doc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 16-January 16

Re: pointers in C

Posted 17 January 2016 - 10:02 PM

View Postveerendranadh.killampalli, on 24 February 2009 - 07:04 AM, said:

what is the main role in pointers in c?
i have problem implement pointers with arrays in C. please explain for me.


Pointers in C are used for all kinds of things:
1. For linked data structures (like linked lists, binary search trees, AVL trees, you name it).
2. To save memory (pointers take up much less space than the possibly large objects they point at).
3. For generic programming (like what templates do for C++).

Read up on the tutorials other gave you and see what you can do.
Was This Post Helpful? 0
  • +
  • -

#5 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 9448
  • View blog
  • Posts: 16,371
  • Joined: 19-March 11

Re: pointers in C

Posted 17 January 2016 - 10:09 PM

Quick tip: it's sometimes useful to check the date of a question. If veerendranadh.killampalli is still stumped on pointers, it's probably not going to work out.
Was This Post Helpful? 1
  • +
  • -

#6 freedom_doc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 16-January 16

Re: pointers in C

Posted 18 January 2016 - 12:40 AM

You are right, I did not even notice the date.

But it sure seems in all that time, he should have gotten SOME kind of reply!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1