Computer Science, asked by neeleshkumar7722, 10 months ago

What are the proper prefix and proper suffix of the string ‘‘India’’ ?

Answers

Answered by msp53
8

suffix is 'an'

Indian

Answered by qwsuccess
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