Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow

Lab Exercise

28. Write a program to implement strlen ( ), strcat ( ), strcpy ( ) using the concept of Functions.

Sample Input and Output

Stdin Inputs:

www.digital
g1.com

Sample Result:

Input first string: www.digital
Input second string: g1.com

Length of “www.digital”: 11
Length of “g1.com”: 6

***After concatenation***
First string: “www.digitalg1.com”
Second string: “g1.com”

***After coping first string into second string***
First string: “www.digitalg1.com”
Second string: “www.digitalg1.com”

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top