Exforsys
+ Reply to Thread
Results 1 to 3 of 3

what are pointers

This is a discussion on what are pointers within the C and C++ forums, part of the Programming Talk category; what is a pointer in C? how to use pointers ? where pointers are used? how to use pointers with ...

  1. #1
    nitin daharwal is offline Junior Member Array
    Join Date
    Sep 2007
    Answers
    1

    Thumbs up what are pointers

    what is a pointer in C?
    how to use pointers ?
    where pointers are used?
    how to use pointers with array,linked list,stack and structures?


  2. #2
    adarshshukla is offline Junior Member Array
    Join Date
    Oct 2007
    Answers
    5

    Smile

    pointers are the technique to directly access and manipulate the data storage area. pointers can be used to create dynamic arrays which can store the data without any bounds or limit of the space requried without wasting the memory by predefining the memory size as in arrays.
    pointers can be used for creating stacks, linkedlist, dynamic arrays, structures, trees, b-tree, etc.


  3. #3
    Sandhya.Kishannag is offline Member Array
    Join Date
    Feb 2012
    Answers
    66
    Pointer is a user defined data type to create special types of variables that hold the address of primitive data types like char, int, float, double or user defined data type like function, pointer etc. or derived data type like array, structure, union.

    Pointers are used to implement generic functions like qsort(), callbacks, state machines and anywhere else run time binding of a function is required.

    Pointers are used to create dynamic data structures.
    To pass and handle variable parameters passed to functions.
    To access information stored in arrays. (Especially if you work with links).

    Pointer to array of functions is a pointer which is pointing to an array which contents are pointers to a function.
    A pointer which is pointing to a structure is know as pointer to structure.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...