Question: Initialize the string S with your name and surname. Name and surname are connected by a character which is different than space. The program will

Initialize the string S with your name and surname. Name and surname are connected by a character which is different than space. The program will split string S into sName and sSurname. Use c-style strings. Print out string sName, its length, and string sSurname and its length. Do not use any built-in function, (write a function to take the string as an argument and return its length).

Step by Step Solution

3.37 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To address the problem well utilize Cstyle strings which are essentially arrays of characters termin... View full answer

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!