pointers

This is a discussion on pointers within the C++ Programming forums, part of the General Programming Boards category; Code: int *ptspec; int ii, sum; int peak, back; double rho, rhomax1, rhomax2; ptspec = specPointer(16, 0); what is the ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    pointers

    Code:
    int *ptspec;
    
      int ii, sum;
    
      int peak, back;
    
      double rho, rhomax1, rhomax2;
    
    
    
      ptspec = specPointer(16, 0);
    what is the ptspec ? and its value? and specPointer?

    best wishes all

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    ptspec is a pointer to integer.
    I don't think specPointer is a "known function" (google didn't seem to think so either), and thus all the rest of your question can not be answered.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    ptspec is pointer to integer as matsp said
    its value is the address of object returned by specPointer()

    so unless we don't know what specPointer() does we cannot tell you how the code works

    Please post the full code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  2. Replies: 4
    Last Post: 12-10-2006, 06:08 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 12:18 PM

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