Thread: printf

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    2

    printf

    I was going through this program that used printf function when I realized that it (printf) could take unlimited number of arguments. Using overloading we can specify different number of values to be passed, but how does overlaoding happen in printf function (as we cannot define it unlimited number of times)?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Stop cross-posting. Read the reply in the C board. Pick one forum and stick with it there.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    eh ya hoser, got a beer? stumon's Avatar
    Join Date
    Feb 2003
    Posts
    323
    It uses a way of passing values and the number so the function knows how many to take. Read this example for an explination and implimentation. Click Here
    The keyboard is the standard device used to cause computer errors!

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    ... talking continues over here .

    Please don't start the same thread in two forums.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making it portable.....?
    By ShadeS_07 in forum C Programming
    Replies: 11
    Last Post: 12-24-2008, 09:38 AM
  2. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM
  3. segmentation fault upon reload
    By yabud in forum C Programming
    Replies: 8
    Last Post: 12-18-2006, 06:54 AM
  4. Simple C question: user input to repeat a loop
    By evernaut in forum C Programming
    Replies: 2
    Last Post: 11-18-2006, 09:23 AM
  5. Drawing tables in C
    By stanoman in forum C Programming
    Replies: 5
    Last Post: 10-09-2003, 10:14 AM