Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to print a one-month calendar of user choice using for loop in C?
A one-month calendar can be printed in C using for loops by positioning the first day correctly and then printing all days in a week-by-week format. The key is to add proper spacing before the first day and break lines after every 7 days. Syntax for(i = 1; i < firstDay; i++) printf(" "); // Add spaces before first day for(i = 1; i
Read MoreEscheatment
Escheatment is a legal process where unclaimed assets or property are transferred to the state when the rightful owner cannot be located or identified. This mechanism ensures that abandoned property is not lost permanently and can be put to beneficial public use. The process protects both individual property rights and serves the broader public interest. Key Concepts Escheatment operates on the principle that property should not remain abandoned indefinitely. The concept dates back to feudal times when landowners would reclaim unused property from tenants. In modern times, escheatment applies to various unclaimed assets including bank accounts, insurance policies, securities, ...
Read MoreSetting the Image Brightness using CSS3
To set image brightness in CSS, use the filter property with the brightness() function. The value 0% makes the image completely black, 100% displays the original image (default), and values above 100% make the image brighter. Syntax selector { filter: brightness(value); } Possible Values ValueDescription 0%Completely black image 100%Original image (default) > 100%Brighter than original < 100%Darker than original Example: Brightening an Image (120%) The following example makes an image 20% brighter than the original − ...
Read MoreGenerate an even squares between 1 to n using for loop in C Programming
Even square numbers are the squares of even integers like 22, 42, 62, 82, which result in 4, 16, 36, 64, 100, and so on. In this tutorial, we will generate even squares between 1 to n using a for loop in C programming. Syntax for (initialization; condition; increment) { // Loop body } Algorithm START Step 1: Declare variables a and n Step 2: Read number n from user Step 3: Use for loop to generate even squares For a = 2; a*a
Read MoreSwapping numbers using bitwise operator in C
Swapping two numbers using bitwise operators in C is an efficient technique that uses the XOR (^) operator to exchange values without requiring additional memory for a temporary variable. This method works by exploiting the property that XORing a number with itself results in zero. Syntax a = a ^ b; b = a ^ b; a = a ^ b; How XOR Swapping Works The XOR swap algorithm works on the mathematical property that X ^ X = 0 and X ^ 0 = X. When we perform the three XOR operations, the ...
Read MoreEarly Adopters
Early adopters are individuals or organizations who are among the first to try new products, technologies, or ideas. They play a crucial role in the innovation lifecycle by taking risks on unproven concepts and helping bridge the gap between innovation and mainstream adoption. These risk-taking individuals are typically enthusiastic about technological advancements and willing to invest time and resources in emerging solutions. Key Concepts Early adopters represent the second stage in the technology adoption lifecycle, following innovators but preceding the early majority. Unlike innovators who focus purely on the technology itself, early adopters are more ...
Read MoreSetting Column Count or Width using CSS3
Use the columns property in CSS3 to set the column count and width. It is a shorthand property for column-width and column-count properties. With that, you can set both the properties separately as well. Syntax selector { columns: auto | column-width column-count | initial | inherit; } The columns Property The columns property works as a shorthand property for the column-width and column-count properties. You can specify both width and count in a single declaration. Example 1: Auto Values The following example sets both the column width and ...
Read MoreWrite a C program to reduce any fraction to least terms using while loop
Reducing a fraction to its lowest terms means finding the simplest form where the numerator and denominator have no common factors other than 1. This is achieved by dividing both numbers by their Greatest Common Divisor (GCD). Syntax while (condition) { // Find GCD and reduce fraction } Method 1: Using Euclidean Algorithm This method uses the Euclidean algorithm to find the GCD efficiently − #include int main() { int numerator, denominator, original_num, original_den; int temp, gcd; ...
Read MoreDomestic Corporation
A domestic corporation is a business entity that is incorporated and operates within the same country where it was legally formed. These corporations have separate legal status from their owners, can own property, enter contracts, and are subject to the home country's laws and regulations. Key Concepts A domestic corporation is registered with the government and has legal standing as a separate entity from its owners. It must follow domestic laws and policies while benefiting from legal protections and economic incentives offered by the home country. Domestic corporations can be privately or publicly owned and ...
Read MoreConverting digits to word format using switch case in C language
Converting digits to word format is a common programming problem that helps understand switch-case statements and number manipulation. In C, we can convert one or two-digit numbers into their English word equivalents using switch statements. Syntax switch(expression) { case value1: // code block break; case value2: // code block break; default: ...
Read More