## C program to calculate the area of a rectangle

Introduction : This is a quick beginner level C programming question. We will learn how to calculate the area of a rectangle using user input values. Our program will ask the user to enter the height and width of the rectangle. It will calculate the area and print out the Read more…

## C program to read user input string and print each word in a new line

Introduction : In this C programming tutorial, we will learn how to read one user input string and how to print each word of that string in a new line. Our program will ask the user to enter a string, it will read that string and print each word of Read more…

## C program to print the length of each words in a string

Introduction : In this tutorial, we will learn how to print the length of each words in a string in C. Our program will take one string as input from the user and print out each word with its length. This program will give you an idea on how to Read more…

## C program to convert meter to yard

C meter to yard conversion program : Length conversion is a common problem in many applications. You application is getting the value in one unit from the server and you need to convert it before showing it to the user. Or your application takes the input in one unit and Read more…

## Logical OR operator explanation with example in C

Logical OR operator examples in C programming language : Logical OR is used with two operands. The definition of logical OR is that it will return true if any of the operands is true. Else, it returns false. In C programming, we don’t have any boolean, so it returns 1 Read more…

## 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…