Sindhura Repala has Published 39 Articles

Find the largest number in a series by using pointers in C language

Sindhura Repala

Sindhura Repala

Updated on 20-Jan-2025 17:21:54

4K+ Views

A pointer is a variable that stores the address of another variable. We can hold the null values by using pointer. It can be accessed by using pass by reference. Also, there is no need of initialization, while declaring the variable. Instead of holding a value directly, it holds the ... Read More

How to calculate sum of array elements using pointers in C language?

Sindhura Repala

Sindhura Repala

Updated on 20-Jan-2025 17:20:43

20K+ Views

Pointers A pointer is a variable that stores the address of another variable. Instead of holding a value directly, it holds the address where the value is stored in memory. The two main operators used with pointers are the dereferencing operator and the address operator. These operators are used to ... Read More

What are the local static variables in C language?

Sindhura Repala

Sindhura Repala

Updated on 20-Jan-2025 17:20:08

5K+ Views

A local static variable is a variable, whose lifetime doesn’t end with the function call in which it is declared. It extends until the entire programs lifetime. All function calls share the same copy of local static variables. Static Variables A static variable preserves its value across multiple function calls, ... Read More

How to find minimum element in an array using linear search in C language?

Sindhura Repala

Sindhura Repala

Updated on 20-Jan-2025 16:39:20

1K+ Views

Searching for an algorithm is considered as a step-by-step procedure for specifying a data among a large set of data. The C programming language provides two types of searching techniques. They are as follows − Linear search Binary search Linear ... Read More

Differentiate between int main and int main(void) function in C

Sindhura Repala

Sindhura Repala

Updated on 20-Dec-2024 12:22:22

16K+ Views

The int main Function The int main function indicates that the program returns an integer value, typically 0, at the end of its execution. A return value of 0 signifies that the program has been executed successfully. The syntax of int main is as follows − int main(){  ---  --- ... Read More

What is conditional compilation in C language?

Sindhura Repala

Sindhura Repala

Updated on 18-Dec-2024 17:18:13

14K+ Views

In C programming language, several directives control the selective compilation of different parts of the program code. Conditional Compilation is a set of preprocessing directives that allows us to exclude and include parts of a program based on specified conditions. Each directive in the compilation is processed across different platforms, ... Read More

What is the use of sprintf() and sscanf() functions in C language?

Sindhura Repala

Sindhura Repala

Updated on 17-Dec-2024 14:20:58

6K+ Views

The sscanf() Function The sscanf() function from the C library reads input from a string and stores the results in specified variables. Each argument must be a pointer to a variable that matches the specified type in the format string. Syntax sscanf(string, formatspecifier, &var1, &var2, ……..) Parameters The following are ... Read More

What is union of structure in C language?

Sindhura Repala

Sindhura Repala

Updated on 17-Dec-2024 14:12:39

11K+ Views

In C programming, a union is a memory location shared by multiple variables of different data types. While we can define multiple members in a union, only one member can hold a value at any given time. This makes unions an efficient way to use the same memory space for ... Read More

Differentiate the NULL pointer with Void pointer in C language

Sindhura Repala

Sindhura Repala

Updated on 06-Dec-2024 15:41:23

12K+ Views

The difference between a Null pointer and a Void pointer is that a Null pointer represents a value, while a Void pointer is a type identifier. NULL Pointer A null pointer indicates that it does not point to anything. If a pointer has no assigned address, it should be set ... Read More

Advertisements