C Programs List

On this page, we have tried to categorize all the programs for quick reference. Simple C Programs Airthmatic Operators ++ and — Operatores Global and Internal Variables Extern Variables Bitwise operators Size of data Types Switch Statement Ternary Condition(?) Format Enumeration Example Functions Multiplication table Do statement Sum Digits of Integer Pyramid Pattern Name Sort …

C program without using main function

Write a C program without using main function.In this program, we didn’t use the main function, but we are using the preprocessor directive #define with arguments to define the Main function.A Preprocessor is program which processes the source code before compilation.The ‘##‘ operator is called the token pasting or token merging operator. In the second …

C Program to copy and concatenate strings without using standard functions.

C Program to copy and concatenate strings without using standard functions.In this program , we copy one string from another, and without using the standard library function strcpy from string.h .Here we appends the one string to another without using the strcat function. Read more about C Programming Language . /************************************************************ You can use all …

C Program to implement strlen function

Write a c program to find the length of a string without using the built-in function strlen(). Program will calculate the length of the string using for loop by going through each character of the string, till its end. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* …

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

Write a C program to read a string and check whether it is a palindrome or not (without using library functions). Output the given string along with suitable message.Palindrome is a word, sentence, group of characters, or number, that remains same, when reversed. For example: GADAG, 9009… Read more about C Programming Language . /*********************************************************** …

C program to find the value of cos(x)

Write a C program to find the value of cos(x) using the series up to the given accuracy (without using user defined function) Also print cos(x) using library function. Read more about C Programming Language. /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use …

C program to find the value of sin(x)

Write a C program to find the value of sin(x) using the series up to the given accuracy (without using user defined function) Also print sin(x) using library function. Read more about C Programming Language. /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use …