write a C program named reverse that will print the argument in reverse order

This is a discussion on write a C program named reverse that will print the argument in reverse order within the C++ Programming forums, part of the General Programming Boards category; I need help how write reverse function e.g reverse 1 3 5 7 9 will create the following output 9 ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    8

    write a C program named reverse that will print the argument in reverse order

    I need help how write reverse function e.g reverse 1 3 5 7 9
    will create the following output
    9 7 5 3 1
    I confused, i can use string or integer for my code?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,443
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2009, 06:00 AM
  2. Problem defining structure
    By MTK in forum C Programming
    Replies: 12
    Last Post: 09-08-2009, 03:26 PM
  3. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21