# C Programming Code Examples

## C > Strings Code Examples

### C program to check whether a string is palindrome or not

C++ Codes Check a Number is Palindrome -
C++ sample ask to enter a number to reverse it, then check whether reverse is equal to its "original or not", if "it is equal" then it will be palindrome else it will be not be palindrome:

C Program Calculates Compound Interest -
C Programming code input principle amount. Store it in some variable say principle. Input time in some variable say time. Input rate in some variable say rate. Calculate compound

Code Finds the Median of 2 Sorted Arrays -
Algorithm finds the median of 2 sorted arrays using binary search approach. Takes the input of 'n' Data Elements of both the arrays. Using decrease, conquer method find the combined

C Store Information Name Roll and Marks -
In this c program code, a structure, student is created. This structure has three members: name (string), roll (integer) and marks (float). Then, a structure variable s is created to store

C Analogue Clock create and Display Time -
Record the time program starts execution. Record the current time, using the alternate method of. Convert the time_t value into a type tm structure. Create and display a string

C Program to Implement Stack Operations -
C Implement stack operations using dynamic memory allocation. Use malloc function to allocate memory. Define separate functions for the operations like push, pop and display.

Diameter Circumference & Area of Circle -
C program code input radius of a circle from user and find diameter, circumference and area of the circle. How to calculate diameter, circumference and area of a circle whose...

C Convert Octal to Hexadecimal Number -
C program to input octal number from user and convert to hexadecimal number system. Octal Number System is a base 8 number system. It uses 8 symbols to represent all its