record pointers

This is a discussion on record pointers within the C Programming forums, part of the General Programming Boards category; what do they do I dont get it...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    9

    record pointers

    what do they do I dont get it

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    There is no such thing as a "record" in C. There is in pascal. The term "record" generally refers to a group of items with a fixed format or specification.

    A pointer is a variable that contains an address of a specific type of variable.

    In this case, a "record pointer" would be a pointer to whatever your "record" is.

    Something like:

    struct record {
    ...my stuff here...
    };

    struct record myInstance, *myPointer;

    myPointer = &myInstance;

    Thus, you can access "myInstance" through the pointer to it.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with binary file c++
    By lucky_mutani in forum C++ Programming
    Replies: 4
    Last Post: 06-05-2009, 09:24 AM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  3. Whats wrong with this code?
    By havoq93 in forum C++ Programming
    Replies: 23
    Last Post: 11-15-2002, 12:35 PM
  4. Modifying A Record In C++...help Needed
    By Conquerer in forum C++ Programming
    Replies: 2
    Last Post: 09-28-2001, 09:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21