Articles on Trending Technologies

Technical articles with clear explanations and examples

What is strncmp() Function in C language?

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

The C library function strncmp() compares at most the first n characters of two strings lexicographically. It returns an integer value indicating the relationship between the strings based on the first n characters. Syntax int strncmp(const char *str1, const char *str2, size_t n); Parameters str1 − First string to be compared str2 − Second string to be compared n − Maximum number of characters to compare Return Value 0 − If the first n characters of both strings are equal Positive value − If str1 is lexicographically greater than ...

Read More

Animated background with CSS

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 736 Views

CSS animated backgrounds allow you to create dynamic visual effects by changing background properties over time. The @keyframes rule defines the animation sequence, while the animation property applies it to elements. Syntax @keyframes animation-name { from { background: initial-state; } to { background: final-state; } } selector { animation: animation-name duration timing-function iteration-count; } Example: Color Transition Animation The following example demonstrates a smooth background color transition that cycles through different colors − ...

Read More

Medallion Signature Guarantee

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 688 Views

A Medallion Signature Guarantee is a specialized stamp of authentication that validates the transfer of financial securities like stocks and bonds in physical form. This guarantee protects against fraud and ensures the legitimacy of securities transactions by verifying the identity of the person transferring ownership. Key Concepts A medallion signature guarantee is a validation certifying the legitimacy of the transfer of financial securities in physical form to another person. Financial institutions and transfer agents require it to defend against fraud and confirm the authenticity of the transactions. To obtain a medallion signature guarantee, the respective financial institution ...

Read More

What is strncat() Function in C language?

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

In C, the strncat() function is used to concatenate a specified number of characters from one string to the end of another string. It appends at most n characters from the source string to the destination string. Syntax char *strncat(char *dest, const char *src, size_t n); Parameters dest − Pointer to the destination string where characters will be appended src − Pointer to the source string from which characters will be copied n − Maximum number of characters to append from source Return Value The function returns a pointer to ...

Read More

Set the initial length of a flex item with CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 165 Views

The CSS flex-basis property sets the initial main size of a flex item before free space is distributed. It defines the default size of an element before the remaining space is distributed according to the flex factors. Syntax selector { flex-basis: value; } Possible Values ValueDescription autoDefault value. The length is equal to the length of the flexible item lengthA length unit (px, em, rem, etc.) specifying the initial length %A percentage of the parent container's main size contentSize based on the item's content Example The ...

Read More

What is pass by value in C language?

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

Pass by value is a parameter passing mechanism in C programming where the actual value of arguments is copied to the function's formal parameters. When you pass variables to a function using pass by value, the function receives copies of the values, not the original variables themselves. Syntax return_type function_name(data_type parameter1, data_type parameter2, ...); How Pass by Value Works When using pass by value: The function receives copies of the argument values Changes made to parameters inside the function do not affect the original variables Memory is allocated separately for function parameters ...

Read More

Market Cap vs Enterprise Value

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 405 Views

Market Cap vs Enterprise Value are two fundamental valuation metrics used to assess a company's worth, but they measure different aspects of value. Market capitalization reflects only the equity value of a company's outstanding shares, while Enterprise Value provides a comprehensive view by including debt, cash, and other financial elements. Understanding the distinction between these metrics is crucial for making informed investment decisions and accurately comparing companies across different industries and capital structures. Formula Market Cap Formula: $$\mathrm{Market\: Cap = Current\: Stock\: Price \times Outstanding\: Shares}$$ Enterprise Value Formula: $$\mathrm{Enterprise\: Value = Market\: Cap + Total\: Debt ...

Read More

Set how much a flex item will grow relative to the rest of the flex items with CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 204 Views

The CSS flex-grow property controls how much a flex item will grow relative to the rest of the flex items inside a flex container. When there's extra space available, this property determines how that space is distributed among flex items. Syntax selector { flex-grow: number; } Possible Values ValueDescription 0Default value. Item will not grow. numberA positive number that defines the growth factor relative to other flex items. Example: Basic Flex Grow The following example demonstrates how flex-grow distributes extra space. The third item (Q3) has ...

Read More

What is a two-dimensional array in C language?

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

A two-dimensional array in C is a collection of elements arranged in rows and columns, forming a matrix-like structure. It is essentially an array of arrays, where each element is identified by two indices: row index and column index. Syntax datatype array_name[row_size][column_size]; Example: int matrix[3][4]; declares a 2D array with 3 rows and 4 columns. Memory Layout Two-dimensional arrays are stored in row-major order in memory. Here's how a 2x3 array looks − 2D Array: int a[2][3] a[0][0] ...

Read More

Avoid wrapping flex items with CSS

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 5K+ Views

The CSS flexbox layout allows you to arrange elements in flexible containers. By default, flex items try to fit in a single line, but when they exceed the container width, they may wrap to new lines. To prevent this wrapping behavior, you can use the flex-wrap property with the nowrap value. Syntax .container { display: flex; flex-wrap: nowrap; } CSS flex-wrap Property The flex-wrap property controls whether flex items wrap onto multiple lines or stay on a single line. When set to nowrap, all flex items ...

Read More
Showing 20761–20770 of 61,297 articles
Advertisements