## Logical operators in C with example

Logical operator in C : Three types of logical operators are available in C. Logical AND (&&), logical OR (||) and logical NOT (!). Logical operators are used to test multiple conditions. It returns true(1) or false (0)based on the conditions. In this tutorial, I will show you these logical Read more…

## C strspn function explanation with examples

strspn() function in C with example : strspn() function is defined in string.h header file. It is used to find out the total number of matched characters of a string in a substring. In this tutorial, I will show you how to use this method with one example program.   Read more…

## C strrchr library function explanation with example

strrchr C library function : strrchr() function can be used to get the last substring in a string starting from a specific character. It returns one pointer of a substring. We can use this pointer to print the substring.   Syntax of strrchr() : The syntax of strrchr() method is Read more…

## How to print a pascal’s triangle in C with explanation

Pascal’s triangle in C program: Pascal’s triangle is a triangle where each entry is the sum of the two numbers directly above it. This is a symmetric triangle, i.e. the left side numbers are identical to the right side numbers. Below is a pascal’s triangle of height 10 : 1 Read more…

## C program to find the nth fibonacci number

Introduction : The Fibonacci series is a series of numbers where each value is the sum of its two preceding numbers. Each number in the series is called a Fibonacci number. By convention, the first and the second number of a Fibonacci series are defined as 0 and 1. For Read more…

## Use pointer to find the largest of three numbers in C

Introduction : Pointer variables are used to store the address of a variable in C. We can also access these values stored in the address. In this tutorial, we will learn how to find the largest among three numbers using a pointer. This is a beginner level tutorial and you Read more…

## C program to compare two strings using strcmp

Introduction : In this tutorial, we will learn how to compare two strings in C using strcmp() method. This method takes two arguments i.e. the two strings and returns one integer value. It is defined as below :   Definition of strcmp : The strcmp method is defined as below Read more…