Question
Write a program in C language that will take in two names from a user and give options for a combined nickname (like Bennifer or
Write a program in C language that will take in two names from a user and give options for a combined "nickname" (like Bennifer or Brangelinia). To do this, store each name in a 1-d array(read in as a string). Cut off the last two letters of one name and the first two letters of the other, and print as a single nickname. For instance, if a person inputs Jennie and Richard, the printed nickname could be Richannie or Jennchard. You will have to think how to set up your for loops to print one character at a time excluding the appropriate characters as needed to print the nicknames. Use offset instead of subscripts to print array values(*array+k).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started