Sindhura Repala

Sindhura Repala

28 Articles Published

Articles by Sindhura Repala

Page 3 of 3

Explain insertion of elements in linked list using C language

Sindhura Repala
Sindhura Repala
Updated on 27-Jan-2025 3K+ Views

Linked List Representation Linked lists use dynamic memory allocation, allowing them to grow and shrink as needed. They are defined as a collection of nodes, each containing two parts: data and a link. A linked list is a linear data structure where each element is known as a node, is connected to the next one using pointers. Unlike arrays, elements of a linked list are stored in random memory locations. The representation of data, links, and linked lists is shown below − Representation of node - Representation of Linked List -      Insertion Insertion operations in a linked list ...

Read More

What are string searching functions in C language?

Sindhura Repala
Sindhura Repala
Updated on 24-Jan-2025 2K+ Views

String Searching Functions The C string functions are built-in functions used for various operations and manipulations on strings. These functions perform tasks such as copying, comparing, concatenation, and determining the length of strings. The library also provides several string-searching functions, which are included as follows − Function Description ...

Read More

How to display a summary for a given <details> in HTML5?

Sindhura Repala
Sindhura Repala
Updated on 23-Jan-2025 386 Views

The Tag Summary in HTML To display a visible heading for the tag use the tag. Click the heading to hide or view the details. The first child element of the tag is the element. This tag specifies additional details that the user can open and close on demand. The tag is often used to create an interactive element that the user can switch open and close. Syntax Following is the syntax of the summary element − text … The summary tag supports global and event ...

Read More

How to add a list item in HTML?

Sindhura Repala
Sindhura Repala
Updated on 23-Jan-2025 2K+ Views

Adding Ordered Unordered Lists To define a list item in HTML, use the tag. It can be used inside ordered lists (), unordered lists () and menu lists (). In an ordered list , the list items are displayed with numbers or letters. In an unordered list , and a menu list , the list items are displayed with bullet points. Syntax Following is the syntax list item in HTML − ……… The list tag also supports the following additional attributes − ...

Read More

C Program to find the given number is strong or not

Sindhura Repala
Sindhura Repala
Updated on 23-Jan-2025 44K+ Views

Recursive Factorial Calculation A strong number is a number, where the sum of the factorial of its digits equals the number itself. In C programming, a factorial is the product of all positive integers less than or equal to a given number. To calculate the factorial of a number, we use a recursive function with the argument N. This function will repeatedly call itself with a decremented value of N, multiplying the results until it reaches 1. 123!= 1!+2!+3!  =1+2+6 =9 In this case, 123 is not a strong number because the sum of the factorial of its digits ...

Read More

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

Sindhura Repala
Sindhura Repala
Updated on 20-Jan-2025 5K+ 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 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 declare pointer variables and access the values stored at those address. Pointer variable uses the dereferencing operator to access the value it ...

Read More

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

Sindhura Repala
Sindhura Repala
Updated on 20-Dec-2024 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(){  ---  ---  return 0; } Example Below is a C program for the int main() function without arguments. It uses recursion to decrement a static variable a from 10 to 0, printing its value after each decrement. The main function calls itself until a reaches 0, then returns 0. #include ...

Read More

Differentiate the NULL pointer with Void pointer in C language

Sindhura Repala
Sindhura Repala
Updated on 06-Dec-2024 13K+ 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 to null. Each pointer type, such as int* or char*, can have a null pointer value. The syntax is as follows − * = NULL; Example Following is the C program for NULL pointer − #include int main() { printf("TutorialPoint C ...

Read More
Showing 21–28 of 28 articles
« Prev 1 2 3 Next »
Advertisements