Re: Void typecasting

Discussion in 'C Programming' started by Keith Thompson, May 27, 2014.

  1. Discarding a value is not an action performed by a program. It simply
    means that the value is not used.
    NULL is a macro that expands to a null pointer constant. Assigning NULL
    to a pointer object gives you a null pointer value at run time.

    There's no such thing as a "pointer to NULL". Pointers point to objects
    (or to functions), not to values, and certainly not to macro names, and
    a null pointer doesn't point to anything.
    Keith Thompson, May 27, 2014
    1. Advertisements

  2. Keith Thompson

    Kaz Kylheku Guest

    Sure it is an action. A stack-based machine, for instance, may have to
    execute a pop to eliminate the value, so that the stack remains balanced.
    Kaz Kylheku, May 27, 2014
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.