Results 1 to 3 of 3

Thread: Advantages of pointer

  1. #1
    Brownchris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default Advantages of pointer

    I am new in programming word. I am learning C programming language. I have little bit knowledge of C. but I am not able to understand pointer concept in C. I want to know advantages of pointer. Is it any special use of pointers? If you know any advantage of using 'Pointer', then please let me know that.

  2. #2
    Millerjames is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    The basic advantages of using pointer are that,

    • It allows the use of dynamic memory allocation.

    • A pointer is a variable containing the address of a different variable of a type.

    • The concept of pointer is often scared because this is a technical programming very powerful for defining dynamic structures that is to say that advances over time.

  3. #3
    Davisricky is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    As in C, the C + + permits to use pointers to operate data, but it also introduces the concept of reference handy to permit editing of data passed in a function. A pointer is a variable that should be defined by specifying the type of variable pointed. With the symbol '*' the compiler knows it is a variable of type pointer and not an common variable, again, known that you specify (necessary) the variable type, the compiler knows how many blocks after block located at address.

Similar Threads

  1. How to appreciate pointer in C
    By SmithJohnson in forum Programming
    Replies: 0
    Last Post: 05-06-2010, 03:32 PM
  2. Mouse pointer will not move
    By GonzalezBrown in forum other peripherals
    Replies: 1
    Last Post: 03-04-2010, 04:10 PM
  3. How Do I Get My Mouse Pointer
    By CruzPowell in forum Operating System
    Replies: 0
    Last Post: 03-03-2010, 05:45 PM
  4. Poor Wireless pointer range
    By BakerJones in forum Networking Jargons
    Replies: 2
    Last Post: 02-22-2010, 03:31 PM
  5. Pointer Syntax in C++
    By sheldon in forum Programming
    Replies: 0
    Last Post: 10-05-2009, 12:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48