Question: C PROGRAM ONLY, pointers Write a function to copy all the characters in the input string t starting from the m-th character to the string
C PROGRAM ONLY, pointers
Write a function to copy all the characters in the input string t starting from the m-th character to the string s.call this function in main. void strmcpy( char *t, int m, char *s ); The strmcpy function copies all characters starting from the m-th character in the input string char * t to the string char * s. If m exceeds the length of the input string, the resulting string should be an empty string. [Example of input]: 7 happy new year [Sample output]: new year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
