Thread: Why the address of variable array is equal the variable array?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by claudiu View Post
    First of all you need to cast pointers to void* when using variadic functions like printf().
    First of all, when you use "first of all", there needs to be a second or next thing. Next, this has nothing to do with it being a varadic function, and everything to do with the format specifier he's using. Finally, it's good to finish up with a "finally", or maybe a "last but not least".

    To the OP, read: http://c-faq.com/aryptr/index.html


    Quzah.
    Last edited by quzah; 05-05-2012 at 01:43 PM.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A double variable equals one, it also doesn't equal one.
    By madmax2006 in forum C Programming
    Replies: 9
    Last Post: 02-18-2010, 12:36 AM
  2. Returning the Address of a Local Variable (Array)
    By Jesdisciple in forum C Programming
    Replies: 9
    Last Post: 08-20-2008, 02:03 AM
  3. Replies: 7
    Last Post: 03-17-2008, 04:20 AM
  4. set string array equal variable
    By WaterNut in forum C++ Programming
    Replies: 3
    Last Post: 06-29-2004, 05:02 PM
  5. variable for array ?
    By black in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2004, 06:03 AM