Articles on Trending Technologies

Technical articles with clear explanations and examples

Complementary Goods

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 1K+ Views

Complementary goods are products or services that are consumed together to satisfy a particular need or want. When the consumption of one good increases, the consumption of its complementary good also increases, as they exhibit a negative cross-price elasticity of demand. These goods are interdependent, meaning the utility of one good is enhanced when used with its complement. Key Concepts Complementary goods are frequently used in conjunction to fulfil a shared need or desire. Because they are commonly consumed together, bread and butter, for instance, are complementary goods. Similarly, since using one requires using the other, a printer and ...

Read More

C program to convert upper case to lower and vice versa by using string concepts

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

Converting uppercase letters to lowercase and lowercase letters to uppercase is commonly known as case toggling. In C programming, we can achieve this using ASCII values or built-in character functions. Syntax // Manual approach using ASCII values if (ch >= 'a' && ch = 'A' && ch = 'a' && string[i] = 'A' && string[i]

Read More

Return the value of an attribute of the selected element using CSS

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 335 Views

The attr() CSS function returns the value of an attribute of the selected element and is commonly used with the content property in pseudo-elements to display attribute values as text content. Syntax selector::before, selector::after { content: attr(attribute-name); } Example: Displaying Link URLs The following example uses the attr() function to display the URL of a link after the link text − a::after { content: " (" attr(href) ")"; ...

Read More

C program to verify if the numbers are abundant(friendly) or not?

Bhanu Priya
Bhanu Priya
Updated on 15-Mar-2026 893 Views

In C programming, abundant numbers (also called friendly numbers) are special numbers where the sum of their proper divisors equals the number itself. Two numbers form an abundant pair if both numbers are abundant individually. Syntax // Find sum of proper divisors for(i = 1; i < number; i++) { if(number % i == 0) { sum = sum + i; } } // Check if abundant if(sum == number) { // Number is abundant } ...

Read More

Best Investment Options for Senior Citizens

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

Senior citizens require investment options that balance safety, regular income, and inflation protection. While fixed deposits offer security, they may not provide sufficient returns to maintain purchasing power over time. A diversified portfolio combining low-risk, moderate-risk, and selective higher-risk investments can help senior citizens achieve financial stability and growth during retirement. Key Investment Options for Senior Citizens Government-Backed Schemes Senior Citizen Savings Scheme (SCSS) − Government-backed scheme offering up to 7.4% interest paid quarterly. Investment limit is Rs. 15 lakhs with 5-year tenure, extendable by 3 years. Ideal for risk-averse investors seeking regular income. Pradhan Mantri Vaya ...

Read More

Explain Squeeze Function C language

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

The squeeze() function in C is a user-defined function that removes all characters from the first string that are present in the second string. This function is particularly useful for filtering characters based on a reference string. Syntax void squeeze(char string1[], char string2[]); Parameters string1[] − The source string from which characters will be removed string2[] − The reference string containing characters to be removed from string1 How It Works The squeeze function works by scanning each character in the first string and checking if it exists in the second ...

Read More

Usage of var() CSS function

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 130 Views

The var() function in CSS is used to insert the value of custom properties (CSS variables) into your stylesheet. It provides a way to reuse values throughout your CSS and create more maintainable code. Syntax var(--custom-property-name, fallback-value) Possible Values ParameterDescription --custom-property-nameThe name of the custom property (must start with two dashes) fallback-valueOptional value to use if the custom property is not defined Example: Basic Usage The following example demonstrates how to define custom properties and use them with the var() function − ...

Read More

Write a C program to display all datatypes ranges in tabular form

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

In C programming, data types define the type and range of values that can be stored in variables. This program displays all fundamental data types with their minimum and maximum ranges in a tabular format using the limits.h header file. Syntax #include #include // Use predefined constants like INT_MIN, INT_MAX, FLT_MIN, FLT_MAX Primary Data Types C supports four fundamental data types − Integer − Stores whole numbers (int, short, long) Character − Stores single characters (char) Floating-point − Stores decimal numbers (float) Double precision − Stores high-precision decimal numbers (double) ...

Read More

Perform Animation on CSS font-size property

Samual Sam
Samual Sam
Updated on 15-Mar-2026 1K+ Views

The CSS font-size property can be animated to create text that grows or shrinks smoothly over time. This creates engaging visual effects for headings, hover states, or attention-grabbing elements. Syntax @keyframes animation-name { keyframe-selector { font-size: value; } } selector { animation: animation-name duration timing-function iteration-count; } Example: Basic Font Size Animation The following example demonstrates animating the font-size property from its default size to 30px − ...

Read More

Usage of attr() CSS function

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 147 Views

The attr() CSS function returns the value of an attribute of the selected element. It's commonly used with the content property in ::before and ::after pseudo-elements to display attribute values dynamically. Syntax attr(attribute-name) Parameters ParameterDescription attribute-nameThe name of the HTML attribute whose value you want to retrieve Example 1: Displaying href Attribute The following example displays the URL next to each link using the attr() function − a::before { content: " (" ...

Read More
Showing 20811–20820 of 61,297 articles
Advertisements