What are the proper prefix and proper suffix of the string ‘‘India’’ ?
Answers
Answered by
8
suffix is 'an'
Indian
Answered by
18
A proper prefix and proper suffix of a string is not equal to the string itself and non- empty.
These are the special cases of substrings.
String- "India"
All possible substrings - "India", "Indi" , "ndia" , " Ind", " ndi" , "dia", "In", "nd", "di", "ia" , "I", "n", "d", "i", "a"
A prefix of a string is a substring that occurs at the beginning of the string.
A suffix of a string is a substring that occurs at the end of the string.
Proper Prefix - "I", "In", "Ind", "Indi"
Proper Suffix - "a", "ia", "dia", "ndia"
Similar questions
Math,
7 months ago
History,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago