Tag: function
C program to find reverse of a number using recursion
Learn how to write a C program to find the reverse of a number using recursion. This guide covers the concept of recursion, a detailed algorithm, and complete code examples.
C program to check if a number is palindrome using recursion
Discover how to write a C program to check if a number is a palindrome using recursion. This article provides an explanation of palindromes, a recursive algorithm, and complete code examples.
C program to get nth Fibonacci term using recursion
Learn how to write a C program to find the nth Fibonacci term using recursion. This article explains the Fibonacci sequence, recursive approach, and provides complete code examples for calculating ...
C Program to Return Multiple Values from a function
Learn how to return multiple values from a function in C using pointers, structures, and arrays. This comprehensive guide includes step-by-step instructions, example code, and detailed explanations...
Decorators in Python: Extending functionality of a function
Decorators are one of the most powerful concepts in python. A decorator is a function which takes another function or wraps a function to improve the behaviour of that function.
Generators in python: How to use Generators and yield in Python
A generator is a function which is responsible to generate a sequence of values. It can be written like a regular function, but it uses the yield keyword.
C Program to find square of a number
Learn how to write a C program to find the square of a number using a function. This article explains the concept, provides a complete code example, and highlights the benefits of using functions i...
C Program to find cube of a number
Learn how to write a C program to find the cube of a number using a function. This article provides a complete explanation and code example, highlighting the benefits of using functions in C progra...
C Program to find circumference, diameter and area of a circle
Learn how to write a C program to calculate the circumference, diameter, and area of a circle using functions. This article provides a complete explanation and code example, highlighting the benefi...