C program to pass different types of arguments to a function

In this C programming tutorial, we will learn how to pass different types of arguments to a function and how to print their values. This program is for beginner level and you will get the basic understanding of how a function works in C.

Read

C program to print the current time, day, month and year

In this C programming tutorial, we will learn how to print the current time, day, month, and year. This program will use time.h header file to print these values. The logic required to print these values is already implemented. You need to import time.h header file to use these features. We will use the following values in this example :.

Read

C programming example to check if two strings are anagram or not

In this tutorial, we will learn how to check if two strings are Anagram or not using C. Two strings are called anagram if letters of one string can be rearranged to create the other string. For example, cat and atc are anagram strings. Similarly, hello world and world hello are anagram. The user will provide both strings and our program will find out if they are anagram or not.

Read

C program to ask the user to select a number within a range

In this C programming tutorial, we will learn how to ask a user to select a number within a certain range. In this example, we will ask the user to enter a number within 1 and 10. If the number is not in range like 11,0,1,23 etc., we will print one message that it is not valid and the program will ask again to enter a valid number.This program will use one while loop as infinite loop. Means the loop will run continuously till the user will enter one valid number. Let's take a look at the program :.

Read

C program to find the first non repeating character in a string

In this tutorial, we will learn how to find the first non-repeating character in a string using C. For example, for the string codevscolor, it will print d as it is the first non-repeating character. We can solve this problem different ways. Let's take a look at them one by one :.

Read

C program to get the first uppercase letter in a string

In this tutorial, we will learn how to find the first uppercase letter or capital letter in a string using C programming language. User will enter the string and our program will find the first capital letter and print it out. Let's take a look at the program first :.

Read

C program to find the first vowel in a user input string

In this C programming tutorial, we will learn how to find first vowel in a string using C language. For example, for the string Hello World !!, the first vowel is e.This character should be print out by the program. The user will enter one string, our program will read it and store it in an array. Let's take a look at the program first :.

Read

Java DayOfWeek explanation with example

DayOfWeek is an enum in Java that represents all seven days of a week. It is defined as :.

Read

C program to find the first and the last position of a character in a string

In this tutorial, we will learn how to find the first and last position of a character in a given string using C. The program will take the inputs(string and character) from the user and find out the first and last occurance of the given character. Let's take a look at the program first :. string

Read

Java program to check if a matrix is upper triangular matrix or not

In this tutorial, we will learn how to find if a matrix is upper triangular or not. A matrix is called upper triangular if all the elements of the matrix below the main diagonal is 0. Else, it is not an upper triangular matrix.

Read