C Program for Sum of digits of a given number. Examples : Input : 123 Output : 6 Input : 1995 Output : 24 Algorithm : To get sum of each digits Read more →
C-Basic
45 postsIn this article, you’ll learn about strings in C programming. Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated Read more →
In this article, you will learn to calculate the factorial of a number. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial Read more →
In this article, you’ll learn about unions in C programming. More specifically, how to create unions, access its members and learn the differences between unions and structures. User defined data type : Read more →
A structure is a user defined data type in C. A structure creates a data type that can be used to group items of possibly different types into a single type. Structure Read more →
Data types define the type of data a variable can hold. C language has some predefined set of data types to handle various kinds of data that we can use in our Read more →
Prerequisite – C language C standard library (libc) is the standard library for the C programming language, as specified in the ANSI C standard. C standard library is also called the ISO Read more →
A function is a block of code that performs a specific task. It is a set of statements that take inputs, do some specific computation and produces output. A function can be Read more →
Loops are very useful when you want to perform a task repeatedly. Loops are used to execute a set of statements repeatedly until a particular condition is satisfied. A loop consists of Read more →
C conditional statements allow you to make a decision, based upon the result of a condition. These statements are called Decision Making Statements or Conditional Statements. Decision making statements available in C Read more →