Thread: pointers

  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, 07:08 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM