jus curious

This is a discussion on jus curious within the C Programming forums, part of the General Programming Boards category; I was reading today on strings.. I came across a code with this line Code: int countem( char ** ptr) ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Location
    USA
    Posts
    63

    jus curious

    I was reading today on strings..
    I came across a code with this line

    Code:
    int countem( char ** ptr)
    ignore the function name

    I want to know abt the parameter

    I knew abt char *ptr where its a pointer but what does ** indicate ?/...can i know
    any advice is appreciated thnx

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,304
    Pointer to a pointer.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2009
    Location
    USA
    Posts
    63
    oh ..thnx but why do we need them?..i read it online but i can do with some help.thnx once agn

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,025
    Just as if you would like to assign an integer variable in another function, perhaps you want to assign a pointer in another function, hence you would need a pointer to that pointer.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Curious GCC error messages
    By Mario F. in forum Tech Board
    Replies: 1
    Last Post: 11-22-2006, 04:57 PM
  2. Just curious
    By Chaplin27 in forum C++ Programming
    Replies: 3
    Last Post: 09-10-2004, 11:57 AM
  3. Curious about thumdnails
    By Gravedigga in forum Windows Programming
    Replies: 1
    Last Post: 03-08-2004, 10:02 AM
  4. A curious question
    By sbongo in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 01-02-2004, 09:55 PM
  5. Curious About Master Boot Record
    By civix in forum Tech Board
    Replies: 1
    Last Post: 01-26-2003, 02:19 AM

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