Recitation3

Quiz 2


28 January 2010

  1. Write a C program that takes a string from the command-line argument and reverses it.
    - There should be at least one string given as an argument. (print out an error message otherwise)
    - Your reverse string must be an array
    - Print out the string and the reverse string

    Write a C program that takes in 3 integers as arguments from the command-line and performs the following tasks.
    - Prints out an error message if 3 integers are not given.
    - Find the maximum and the minimum value from the 3 given numbers and print them out.

Samreen Anjum
Last modified: Fri Feb 5 17:24:52 AST 2010