UNIT
3 STRINGS
IT 105 Computer Programming 2
Programs without using String Functions
IT 105 Computer Programming 2
Program to find length of string without using strlen()
The loop will continue until the
end of string marker is found (‘\0’)
IT 105 Computer Programming 2
Program to copy string without using strcpy()
copying the content index by index until the
end of string
placing the end of string marker
IT 105 Computer Programming 2
Program to reverse string without using strrev()
Finding the length of string using for-loop,
The length is used to determine the last index
of str1
Copying the content of str1 to str2 index by
index
Variable i will start at the last index of str1
based on its length while variable j will start at
0
IT 105 Computer Programming 2
Program to concatenate two strings without using strcat()
IT 105 Computer Programming 2
Program to convert string to lowercase or uppercase without using
strlwr() and strupr
IT 105 Computer Programming 2