Question: Write a function in C that concatenates strings from the command line/terminal. It takes char** as a parameter and returns a char*. It must take

Write a function in C that concatenates strings from the command line/terminal. It takes char** as a parameter and returns a char*.

It must take at least 3 input arguments (3 separate words).

if you typegcc stringConcat.c -o concat.cthen type./concat.out alohathen it should return a message saying to input at least 3 arguments.

if you type./concat.out C is the bestthen it should returnC is the best.

You may only use stdlib and stdio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!