Category: Programming

Finding Factorial of a number using Recursion

Finding Factorial of a number using Recursion

Recursive Function : Recursive function is a type of function which calls itself in Function Definition Code Segment until a terminating condition reached. In the following program “fact( )” is a recursive function. Use long...

Pointers in programming

Pointers in programming

When we declare a variable in C/C++ etc. by statements like int a or int b , it tells the compiler to reserve the space of two bytes in the memory to store the...

C++ program to find the length of user entered string

C++ program to find the length of user entered string

A Simple C++ program to find the length of user entered string.In this program we have used the two properties of Strings 1. The terminating character or end of string marker ‘\0’ and the...

Convert the Decimal into Binary equivalent.

Convert the Decimal into Binary equivalent.

A Simple C Program to Convert the Decimal into Binary equivalent. We have used a While loop, Modulus(%) and Division(/) operator . We have used an Array “ar” to store the Binary Output(remainder) for...