content top

C Program: Replacing a substring from a string

C Program: Replacing a substring from a string

This is a nice piece of program I wrote a few months ago. One of my students requested me to write this. So, here it is! Hope this might be useful for you… #1: What the program does: This program finds all the occurrences of a sub-string within a given string and replaces that with our provided string. Basically there are many similar programs but, most of them lack the ability to find multiple occurrences. So I wrote this keeping...

Read More

C Program: Adding two polynomials using Linked List

C Program: Adding two polynomials using Linked List

So, this is our first C program in the blog. We first thought of creating a separate blog for C & C++ related posts, but because of the maintenance issue, we finally decided to merge it to the main blog. So, without any further here is the program. #1: What the program does: This program is a practical implementation of the data structure “Linked List“. We use a linked list to dynamically store user input of polynomial...

Read More
content top
TOP