Today we are going to write a c program to compress a string and reduce the size of a string. Let us look at the sample input and output. Sample Input : aaccccabbbccaaaaa xxxxyyyxxxyyyyyyyyyya Sample Output : a2c4ab3c2a5 x4y3x3y10a
Things you must know before writing the first C program
There are specific steps you need to follow to solve a problem, in other words, write a C program.
Why should we learn C Programming?
There are a lot of high-level programming languages such as C, Perl, PHP, Java, etc. All of these languages are used to do different tasks. But among them, C is important.