Bhanu Priya has Published 1449 Articles

What is an inline function in C language?

Bhanu Priya

Bhanu Priya

Updated on 13-Dec-2024 13:03:49

13K+ Views

Inline Function An inline function in C reduces function calls by expanding the function's code at the call site during compile time. This increases the efficiency of the function. The inline function can be substituted at the point of the function call, but this substitution is always the compiler's choice. ... Read More

What are the text files and binary files in C language?

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 17:26:32

14K+ Views

A file is a collection of data stored in secondary memory, used for storing information that can be processed. Files allow data to be saved and retrieved later. They can store both programs and data, making file input and output operations crucial for reading from and writing to files. There ... Read More

What are the special symbols in C language?

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 17:16:02

63K+ Views

In C programming language, generally, the special symbols have some special meaning. This language provides low-level access to the memory and it is identified for its performance and efficiency. The C language includes a character set of English alphabets(a-z, A-Z), digits(0-9), and specific meaning with special characters. Some special characters ... Read More

What are the different types of pointers in C language?

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 17:13:22

36K+ Views

A pointer is a variable that stores the address of another variable. The deceleration of a pointer is similar to that of a variable the only difference is while declaring a pointer we need to use "*". Following is the syntax to declare a pointer − type *variable_name; Similar ... Read More

What are the loop control statements in C language? Explain with flow chart and program

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 17:08:18

8K+ Views

Loop control statements in C are designed to repeatedly execute operations until a specified condition is met. These Loops continue to run as long as the condition remains true. Loop control statements are used to repeat a set of statements. They are as follows − ... Read More

What are implicit and explicit type conversions in C language?

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 17:02:45

31K+ Views

Type conversions change an expression from one data type to another. conversions can utilize many features of type hierarchies or data representation. Implicit type conversion Explicit type conversion Implicit Type Conversion Implicit type conversions, also known as type casting or ... Read More

What are the different operations on files in C language?

Bhanu Priya

Bhanu Priya

Updated on 12-Dec-2024 16:59:58

8K+ Views

A file is a collection of data stored in secondary memory. The data is entered directly from the keyboard, files are used to store both information and programs. The following operations can be performed on files in the C language − Naming the file. ... Read More

C program to print area of triangle, square, circle, rectangle and polygon using switch case.

Bhanu Priya

Bhanu Priya

Updated on 10-Dec-2024 13:25:31

50K+ Views

Problem Write a program to calculate the area of triangle, square, circle, rectangle and polygon by using the switch case. Solution Based on case number, the area of triangle, square, circle, rectangle and polygon is calculated. The logic used to find area of triangle is ... Read More

How to write a C program to find the roots of a quadratic equation?

Bhanu Priya

Bhanu Priya

Updated on 10-Dec-2024 13:10:44

152K+ Views

Problem Applying the software development method to solve any problem in C Language. Solution Find roots of a quadratic equation, ax2+bx+c. There will be 2 roots for given quadratic equation. Analysis Input − a, b, c values Output − r1, ... Read More

C program to sort an array in an ascending order

Bhanu Priya

Bhanu Priya

Updated on 10-Dec-2024 13:01:40

120K+ Views

Problem Sort the given array in descending or ascending order based on the code that has been written. Solution An array is a group of related data items which share’s a common name. A particular value in an array is identified with the help of its "index number". Declaring array ... Read More

Advertisements