C program to Demonstrate the Recursive function.

Write a C program to demonstrate the recursive function.Recursion  is the programming technique that a process invoking itself again and again. In this program, We reverse the given number and checks it is a palindrome or not. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal …

C Program to demonstrate dynamic memory allocation example.

Write a C Program to demonstrate dynamic memory allocation example.Dynamic memory allocation means you can allocate or relocate (manipulate) the memory at the run time, using malloc, calloc, and realloc functions.Using malloc, We can allocate block of memory for a variableUsing calloc function, We can allocate multiple blocks of memory for a variable.We can alter, …

C program to generate and print prime numbers in a given range.

Write a C program to generate and print prime numbers in a given range. Also print the number of prime numbers.Prime number is a whole number and greater than 1, which is divisible by one or itself.Example: 2, 3, 5, 7, 11, 13………… Read more about C Programming Language . /************************************************************ You can use all …

C Program to find the even numbers square and sum from 1 to 10.

C Program to find the even numbers square and sum from 1 to 10.Even number is an integer, which is the multiple of two. In this program we use the for loop to produce the even numbers. Try to change the for loop limits you can get the various range results. Read more about C …

C Program to find sum and product using macros.

Write C Program to find sum and product using macros.Macro is a piece of text that is expanded by the preprocessor part of the compiler. This is used in to expand text before compiling. Macro definitions (#define), and conditional inclusion (#if). In many C implementations, it is a separate program invoked by the compiler as …

C Program to print ASCII values of all characters.

C Program to print ASCII values of all characters.ASCII value is the American Standard Code for Information Interchange.ASCII value is the numerical value, or order, of an character. There are 128 standard ASCII characters, numbered from 0 to 127. Extended ASCII adds another 128 values and goes to 255. The numbers are typically represented in …

C Program to find the strong number.

Write a C Program to find the given number is strong or not?A number is called strong number if sum of the factorial of its digit is equal to number itself. Example: 145 since 1! + 4! + 5! = 1 + 24 + 120 = 145. Read more about C Programming Language . /************************************************************ …

C Program to find the two sets Intersection and Union

Write a C Program to find the two sets Intersection and UnionA Set is a collection of well defined and distinct objects.Intersection of two sets A and B is defined as, all the elements of set A, which are also elements of set B.Union of two sets A and B is defined as, all the …

C Program to add one to digits of a number

Write C Program to add one to digits of a number. C Program that adds the 1 to each single digit of a number, i.e for Example 12345’s output is 23456. If the digit is 9 it adds 1 and follows the carry system, 9 becomes 0 and 9’s left digit adds one more 1. …

C Program to generate Graph using grphics.h

C Program to Generate the graph sheet using the grphics.h library. To use graphics.h, we have to install the drivers in to the the system by using the initgraph() function. Here  we derive the graph of input sizes verses time taken for input sizes. x axis represents inputs(0,10000,20000,—-), y axis rep time(0,0.05,0.1,0.15—). Read more about …