c

C nanosleep method explanation with example

nanosleep method is used to pause the execution of a program for specific amount of time. Learn how to use nanosleep with example.

Read
c

How to delete an empty directory in C

C program to delete an empty directory. This program will take the directory name as input from the user and delete it if it exists.

Read
c

C program to convert hour to minute and seconds value

C program to convert hour to minute and seconds values. It will take the hour value as input from the user and print the minute and seconds value.

Read
java

Java program to convert a boolean array to string array

Java program to convert a boolean array to string array. We will use String.valueOf and Boolean.toString methods to do the conversion.

Read
java

Java HashMap.merge() method explanation with examples

Java HashMap.merge() method is used to merge an item to an existing HashMap in Java. Learn how to use HashMap.merge() method with example.

Read
java

Java program to reverse an array without using an additional array

Java program to reverse an array without using an additional array or learn how to do in place array reverse in Java.

Read
java

Java program to sort array elements by frequency

Java program to sort elements of an array by frequency. This program will sort the numbers in descending order.

Read
c

C program to print all words in a string ends with a specific character

C program to print all words in a string ends with a specific character. The string and the character is given.

Read
c

How to split a string in C using strtok library function

Learn how to use strtok function in C to split a string. strtok is defined in string.h header file and this is used to split a string.

Read
c

How to use strstr in C with example

Learn how to use strstr in C with example. strstr method is used to find the first occurrence of a string in another string.

Read