Bhanu Priya has Published 1449 Articles

Explain append mode operation of files in C language

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:26:21

689 Views

File is collection of records or is a place on hard disk, where data is stored permanently.Need of filesEntire data is lost when a program terminates.Storing in a file preserves the data even if, the program terminates.If you want to enter a large amount of data, normally it takes a ... Read More

Explain read mode operation of files in C language

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:25:59

993 Views

File is collection of records or is a place on hard disk, where data is stored permanently.Need of filesEntire data is lost when a program terminates.Storing in a file preserves the data even if, the program terminates.If you want to enter a large amount of data, normally it takes a ... Read More

Explain write mode operation of files in C language

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:22:38

915 Views

File is collection of records or is a place on hard disk, where data is stored permanently.Need of filesEntire data is lost when a program terminates.Storing in a file preserves the data even if, the program terminates.If you want to enter a large amount of data, normally it takes a ... Read More

How to separate even and odd numbers in an array by using for loop in C language?

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:18:59

2K+ Views

An array is a group of related data items that are stored with single name.For example, int student[30]; //student is an array name that holds 30 collection of data items with a single variable nameOperations of arraySearching − It is used to find whether particular element is present or notSorting ... Read More

How to perform arithmetic operations on two-dimensional array in C?

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:17:01

3K+ Views

An array is a group of related data items that are stored with single name.For example, int student[30]; //student is an array name that holds 30 collection of data items with a single variable nameOperations of arraySearching − It is used to find whether particular element is present or notSorting ... Read More

How to perform the arithmetic operations on arrays in C language?

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:12:55

4K+ Views

An array is a group of related data items that are stored with single name.For example, int student[30]; //student is an array name that holds 30 collection of data items with a single variable nameOperations of arraySearching − It is used to find whether particular element is present or notSorting ... Read More

C program to replace all occurrence of a character in a string

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:12:15

8K+ Views

Enter a string at run time and read a character to replace at console. Then, finally read a new character that has to be placed in place of an old character where ever it occurs inside the string.Program1Following is the C program to replace all occurrence of a character − Live ... Read More

How to find the product of given digits by using for loop in C language?

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:11:50

3K+ Views

The user has to enter a number, then divide the given number into individual digits, and finally, find the product of those individual digits using for loop.The logic to find the product of given digits is as follows −for(product = 1; num > 0; num = num / 10){   ... Read More

C program to find palindrome number by using while loop

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:05:23

16K+ Views

Palindrome number is a number which remains same when it reverses. In C language, the user is allowed to enter any positive integer and to check, whether the given number is palindrome number or not by using the while loop.Example1Following is the C Program to find Palindrome number by using ... Read More

C program to convert centimeter to meter and kilometer

Bhanu Priya

Bhanu Priya

Updated on 24-Mar-2021 13:03:38

6K+ Views

Here, the user has to enter the length in centimeters (cm), and then, convert the length into meters (m), and kilometer (km).1 Meter = 100 Centimeters 1 Kilometer = 100000 CentimetersAlgorithmRefer an algorithm given below to convert centimeter into meter and kilometer respectively.Step 1: Declare variables. Step 2: Enter length ... Read More

Advertisements