Articles on Trending Technologies

Technical articles with clear explanations and examples

How to pass individual members of structure as arguments to function in C language?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 1K+ Views

In C programming, you can pass individual members of a structure as arguments to functions. This approach treats each structure member as a separate parameter, allowing functions to work with specific data fields independently. Syntax functionName(structure_variable.member1, structure_variable.member2, ...); Key Points Each member is passed as an individual argument in the function call Structure members are collected as ordinary variables in the function header This method passes values by copy, not by reference Example: Calculating Student Total Marks Here's how to pass individual structure members to calculate total marks for students ...

Read More

CSS nav-down property

George John
George John
Updated on 15-Mar-2026 275 Views

The CSS nav-down property defines which element should receive focus when the user presses the down arrow key. This property is part of CSS spatial navigation, designed primarily for TV remotes and game controllers where users navigate using directional keys. Syntax selector { nav-down: target; } Possible Values ValueDescription autoBrowser determines the next element (default) idID of the element to focus when down arrow is pressed inheritInherits the value from parent element Example: Creating Navigation Grid The following example creates a grid of buttons where pressing ...

Read More

Explain string library functions with suitable examples in C

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 41K+ Views

The C standard library provides several predefined functions for string manipulation in the string.h header file. These functions help perform operations like copying, comparing, concatenating, and searching strings efficiently. Common String Functions strlen() − finds string length strcpy() − copies strings strcat() − concatenates strings strcmp() − compares strings strstr() − searches for substrings The strlen() Function The strlen() function returns the number of characters in a string, excluding the null terminator. Syntax size_t strlen(const char *str); Example #include #include int main() { ...

Read More

Animate CSS border-top-color property

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 219 Views

The CSS border-top-color property can be animated to create dynamic color transitions on an element's top border. This property defines the color of the top border and can smoothly transition between different color values using CSS animations. Syntax selector { border-top-color: color; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { from { border-top-color: initial-color; } to { border-top-color: final-color; } } Example The following example demonstrates how to animate the border-top-color property from yellow to red ...

Read More

Voluntary Delisting

Pratik Kumbhare
Pratik Kumbhare
Updated on 15-Mar-2026 208 Views

Voluntary delisting occurs when a publicly traded company chooses to remove its shares from a stock exchange. This strategic decision is typically driven by factors such as mergers, acquisitions, cost reduction, or the desire for greater operational privacy and flexibility. Process of Voluntary Delisting Board Approval − The board of directors evaluates the rationale for delisting and assesses alignment with strategic objectives Shareholder Approval − The delisting proposal is submitted to shareholders for formal approval based on regulatory voting requirements Stock Exchange Notification − The company formally notifies the stock exchange of its intention to delist, providing required ...

Read More

How to create a pointer for strings using C language?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 2K+ Views

In C programming, you can create pointers to strings using arrays of pointers. An array of pointers to strings is an array where each element is a pointer that holds the base address of a string literal or character array. Syntax char *array_name[size] = {"string1", "string2", "string3", ...}; Here, each element array_name[i] is a pointer to the base address of the corresponding string. char *names[3] = {"Alice", "Bob", "Charlie"}; names[0] names[1] ...

Read More

Usage of CSS grid-auto-flow property

radhakrishna
radhakrishna
Updated on 15-Mar-2026 149 Views

The CSS grid-auto-flow property controls how auto-placed items are inserted in the grid container. It determines whether new items are placed in rows or columns and the direction of placement. Syntax selector { grid-auto-flow: value; } Possible Values ValueDescription rowAuto-placed items fill rows first (default) columnAuto-placed items fill columns first row denseFill rows and pack items densely column denseFill columns and pack items densely Example 1: Column Flow The following example uses grid-auto-flow: column to place items in columns − ...

Read More

VA Loan

Pratik Kumbhare
Pratik Kumbhare
Updated on 15-Mar-2026 204 Views

A VA loan is a mortgage benefit guaranteed by the U.S. Department of Veterans Affairs for eligible veterans, active-duty service members, and surviving spouses. This government-backed loan program enables qualified borrowers to purchase or refinance homes with favorable terms, including no down payment requirements and competitive interest rates. Key Features of VA Loans A VA loan is a type of mortgage guaranteed by the Department of Veterans Affairs rather than issued directly by the VA. The government backing reduces risk for lenders, allowing them to offer more favorable terms to borrowers. Unlike conventional mortgages, VA loans ...

Read More

Set whether the text of the element can be selected or not with CSS

varma
varma
Updated on 15-Mar-2026 181 Views

Use the CSS user-select property to control whether the text content of an element can be selected by the user. This property is useful for preventing text selection in UI elements like buttons, navigation menus, or decorative text. Syntax selector { user-select: value; } Possible Values ValueDescription autoDefault behavior - text can be selected noneText cannot be selected textText can be selected allAll content is selected with a single click Example: Preventing Text Selection The following example demonstrates how to prevent text selection using user-select: none ...

Read More

How to pass individual elements in an array as argument to function in C language?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 2K+ Views

In C programming, you can pass individual array elements as arguments to functions by specifying the array element with its index in the function call. The function receives these elements as separate parameters, not as an array. Syntax functionName(array[index1], array[index2], ...); Example 1: Passing First and Last Elements This example demonstrates how to pass the first and last elements of an array to a function − #include void display(int first, int last) { printf("First element = %d", first); printf("Last element = %d", ...

Read More
Showing 20691–20700 of 61,297 articles
Advertisements