Bhanu Priya has Published 1449 Articles

State the importance of C language and its general structure

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 08:36:53

7K+ Views

C programming is a general-purpose, procedural, imperative computer programming language.Importance of C LanguageC is called as a robust language, which has so many built-in functions and operations, which can be used to write any complex program.Generally, we use to call C as a middle level language. Because, the ‘C’ compiler ... Read More

Explain the Format of C language

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 08:35:46

2K+ Views

C programming is a general-purpose, procedural, imperative computer programming language. In C language, we see thatStatements are terminated with semicolons.C is case sensitiveIndentation is ignored by the compiler.Strings are placed in double quotes.Library functions are lowercase.Newlines are handled via Format of CThe format of C programming language is explained below ... Read More

Check if the value entered is palindrome or not using C language

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 08:28:05

579 Views

A palindrome is nothing but any word, number, sentence, or other sequence of characters that reads the same backward as forward.In this programming, we are trying to enter a number from console, and assign that number to temp variable.If number is greater than zero, apply the logic given below −while(n>0){ ... Read More

What happens if we include header file for two times in a C program?

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 08:16:08

1K+ Views

C header files include some predefined functions. For example, printf() and scanf() functions are defined in the stdio.h header file.Each header files in C contains different predefined functions to make programs simple to understand.When a header file is included two times in a C program, the second one gets ignored. ... Read More

What are the different searching techniques in C language?

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:59:07

10K+ Views

Searching technique refers to finding a key element among the list of elements.If the given element is present in the list, then the searching process is said to be successful.If the given element is not present in the list, then the searching process is said to be unsuccessful.C language provides ... Read More

Explain the concept of Sorting in C language

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:51:40

5K+ Views

ProblemWhy sorting makes searching easier in C language? How can you judge the sorting efficiency in C?SolutionSorting is the process of arranging elements either in ascending (or) descending order.The term sorting came into existence when humans realized the importance of searching quickly.There are different things in life that we need ... Read More

How to print the content into the files using C language?

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:51:00

253 Views

We can write a program in C for printing some content in to the file and print the following −Number of characters entered into the file.Reverse the characters entered into the file.First, try to store number of characters into the file by opening the file in write mode.For entering data ... Read More

Explain the Random accessing files in C language

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:20:51

11K+ Views

Random accessing of files in C language can be done with the help of the following functions −ftell ( )rewind ( )fseek ( )ftell ( )It returns the current position of the file ptr.The syntax is as follows −int n = ftell (file pointer)For example, FILE *fp; int n; _____ ... Read More

C program to display relation between pointer to pointer

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:10:58

295 Views

In C programming language, pointer to pointer or double pointer is a variable that holds the address of another pointer.DeclarationGiven below is the declaration for pointer to pointer −datatype ** pointer_name;For example, int **p;Here, p is a pointer to pointer.Initialization‘&’ is used for initialization.For example, int a = 10; int ... Read More

C Program for copying the contents of one file into another file

Bhanu Priya

Bhanu Priya

Updated on 11-Mar-2021 07:09:19

23K+ Views

File is a collection of records (or) is a place on hard disk, where data is stored permanently. By using C commands, we can access the files in different ways.Operations on filesThe operations that can be carried out on files in C language are as follows −Naming the file.Opening the ... Read More

Advertisements