asked 72.6k views
0 votes
Write a function named intro that takes a string as input.

Given the string "Becky" as input, the function should return: "Hello, my name is Becky and I love SI 106."

asked
User Furkan
by
8.0k points

1 Answer

4 votes

Answer:

View Image

Step-by-step explanation:

Import string.h to use strcat().

Create a buffer to store user input and the returned string value.

You need to return a string so the function must be a pointer of type char.

You need to use the function strcat() to concatenate the two strings together. It's not easy as python where you can just add strings together.

Write a function named intro that takes a string as input. Given the string &quot-example-1
Write a function named intro that takes a string as input. Given the string &quot-example-2
answered
User Aniski
by
8.5k points

No related questions found