Sunday, 12 December 2010

Flow chart for Functions to insert a sub string into given main string from a given position


Functions to insert a sub string into given main string from a given position


Description:


In this program we need to insert a string into another string from a specified position.











Output:


1.enter first string: computer

2.enter second string: get
3.enter the position where the item has to be inserted:3 comgetputer

Conclusion :

The program is error free


VIVA QUESTIONS:

1)  What is string ?
Ans: A string is an collection of characters

2) Which command is used to combined the two strings ?
Ans: Strcat()

3) Which command is used to copy the strings ?
Ans: strcpy() function copies one string to another



Algorithm


c programs

No comments:

Post a Comment