Thread: Don't understand (int *a, a) etc etc

  1. #16
    Registered User
    Join Date
    Oct 2007
    Posts
    242
    Quote Originally Posted by Elysia View Post
    And when you pass the address, you pass the address, not pass by reference.
    Yo are passing a reference of the variable/object.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I am not passing a reference, I am passing the address (we could just say both analogies are correct, but it MUST not be by reference). Give it a rest. This discussion leads nowhere.
    (You're just jumping on this wagon because the others say "reference", aren't you?)
    Last edited by Elysia; 07-01-2008 at 07:41 PM.
    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.

  3. #18
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    This is a pointless discussion.

    A "reference" became a different concept in the last 20 years or so.

    People argue now that Java has references, not pointers, although some argue that Java does have pointers by way of their references. C++ has references, and you can pass-by-reference.

    This was part of a paradigm shift from traditional pointers to some sort of safe or easier-to-use pointer.

    So, whatever.

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by MacGyver View Post
    This is a pointless discussion.
    Agreed.
    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.

  5. #20
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Did you open the link? They said "passing by reference"... *sob*

    Btw, guys, please, I just want to explain an easy-to-understand-thing-for-beginner in my last reply.

    Did you guys trying to explain something like "pass-by-reference doesn't exist in C" or "array is NOT a pointer" to someone that absolutely new to pointer?

  6. #21
    Registered User
    Join Date
    Jul 2008
    Posts
    5
    Thanks alot for that link "audinue" i understand them now :-D.

    Thanks alot to the other people who replied to my Question :-D.

    Peace

  7. #22
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Quote Originally Posted by audinue View Post
    Did you guys trying to explain something like "pass-by-reference doesn't exist in C" or "array is NOT a pointer" to someone that absolutely new to pointer?
    Yes, we do that.

Popular pages Recent additions subscribe to a feed