Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming array question 1. Log in to Linux. Make a new directory for this lab called Lab2. Place all of the files you create

image text in transcribed
image text in transcribed
image text in transcribed
C programming array question
1. Log in to Linux. Make a new directory for this lab called Lab2. Place all of the files you create for this lab assignment in that directory 2. Create a header file named lab2functions h. In this file, place the following lines: #ifndef 1AB2FUNCTIONS #de fine L B2FUNCTIONS here is where your function prototypes go fendif 3. The following functions deal with arrays of characters I chose characters because I know you've had a lot of experience with integer arrays and it's time for a change For each of the functions below, place a one-line prototype in the header file Print a character array. Write a function called printCharArray that will print the elements of a char array, 10 per line. The values should be separated by one space. 1) an array of characters 2) the size of the array (an integer) Move letters to the front of a char array. Write a function named moveLetters that moves the letters toward the front of the array and moves everything else toward the back The respective order of the letters is not changed (See illustration below) Note: this is not "sorting the array The parameters to the function are 1) an array of characters 2) the size of the array (an integer) DO NOT make additional arrays. If you do, you'l receive a grade of zero for this function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Define the term intellectual property and describe its importance.

Answered: 1 week ago