topical media & game development

talk show tell print

professional-program-12-VarArgs-PrintfDemo.c

? / professional-program-12-VarArgs-PrintfDemo.c


  include <cstdio>
  
  int main(int argc, char** argv)
  {
    printf("int \%d\n", 5);
    printf("String \%s and int \%d\n", "hello", 5);
    printf("Many ints: \%d, \%d, \%d, \%d, \%d\n", 1, 2, 3, 4, 5);
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.