CIS 1500 Study Guide - Quiz Guide: Scanf Format String

592 views3 pages
Lab Exam 2 Example
/* take a list of chars, from user and print in reverse.
Must have a function called initlist that’ takes two parameters, a length and
a character array.
Function called printlist that also takes two parameters, length and
character array.
Should prompt the user for desired number of chars . call initlist which takes
in the chars from the user, then call printList to print the characters in the
reverse order
*/
/*******************************LAB EXAM 2***************
name
email
date
********************************************************/
#include<stdio.h>
#define MAX_LEN 100
//this function initializes array with user input
Void initList (int length, char theArray[]);
//this function prints out the reversed array
void printList(int length, char theArray[]);
Int main(void)
{
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$10 USD/m
Billed $120 USD annually
Homework Help
Class Notes
Textbook Notes
40 Verified Answers
Study Guides
1 Booster Class