CGI programming with C, basic level

Common Gateway Interface(CGI) is one of the most popular way of creating dynamic websites. CGI is a server-side scripting language. It is an interface between The advantage of CGI is the applications can be written in any almost any language. A programmer familiar with C can create programs for CGI. It is common that Perl is usually used for CGI applications. Perl is simple and powerful language used for creating dynamic websites. It is not a strictly interpreted language.
In this post I am going to share my little experience with CGI programs using C in Linux platform( with root privileges). Not going too deeply into CGI or C, how it works?... etc. Just a demonstration
First of all you need a Apache server. Check is it available in your system and make sure that it is running. If it is available then just follow the steps below to start the server.

Armstrong numbers

An Armstrong(after Michael F. Armstrong) number, also known as Narcissistic number or pluperfect digital invariant(PPDI) OR plus perfect number, is a number that is sum of its own digits each raised to the power of the number of digits.
For example:
If the number is 371. How to find this number is an Armstrong number. First check the number of digit in this number. There are 3 digit, so take 3 as power.
Now,  33=27
73=343
13 = 1
27+343+1=371
1634 is Armstrong or not?

Number Palindrome or not

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward.  
A program