structure array function

This is a discussion on structure array function within the C Programming forums, part of the General Programming Boards category; Originally Posted by Prelude >It just looks like you just don't get it Um, your example is wrong. A pointer ...

  1. #16
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    Quote Originally Posted by Prelude
    >It just looks like you just don't get it
    Um, your example is wrong. A pointer to a pointer is not the same as a pointer to an array...
    Yes there was a BUG new and quite suprising thing was
    &a, a both returns array address.
    and that makes more sense to that conversion theory....

    but but but

    still because foo is not modifable lValue,
    it has reference (address) to storage area like
    pointers have so,
    it can be called to pointer.

    maybe you have some references to which
    explains this conversion....
    Last edited by tjohnsson; 06-16-2004 at 12:30 AM.

  2. #17
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >maybe you have some references to which explains this conversion....
    I do, and from Chris Torek no less : http://web.torek.net/torek/c/
    My best code is written with the delete key.

  3. #18
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70

    Lightbulb

    OK !!!
    it's kinda clear now...

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM
  2. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 09:18 AM
  3. Creating a student grade book-how?
    By Hopelessly confused in forum C Programming
    Replies: 5
    Last Post: 10-03-2002, 08:43 PM
  4. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 10:00 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM

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