Thread: Infinite parameters

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    21

    Infinite parameters

    How would one go about implementing a function that took a variable and infinite number of parameters such as printf?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    21
    Never heard of it. Could you explain a bit more? Thanks.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    21
    Actually don't. I'll look it up. Then I'll ask questions.

  5. #5
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Quote Originally Posted by ObjectWithBrain View Post
    Actually don't. I'll look it up. Then I'll ask questions.
    That red text in Salem's reply is a link. Click it and read the description and example. Google will have plenty more if you need it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Infinite loop!!!
    By Bizmark in forum C Programming
    Replies: 3
    Last Post: 02-21-2009, 12:09 PM
  2. infinite stupidity
    By MarlonDean in forum C++ Programming
    Replies: 8
    Last Post: 05-20-2008, 07:33 AM
  3. Infinite Loop!!!
    By Frantic- in forum C++ Programming
    Replies: 3
    Last Post: 12-13-2004, 06:39 PM
  4. A function with infinite parameters
    By Xzyx987X in forum C Programming
    Replies: 7
    Last Post: 03-03-2004, 04:42 PM
  5. infinite loop
    By dukemarlon in forum C++ Programming
    Replies: 11
    Last Post: 11-26-2002, 09:00 AM

Tags for this Thread