Articles on Trending Technologies

Technical articles with clear explanations and examples

C program to store even, odd and prime numbers into separate files

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

In C, we can read numbers from a file and categorize them into even, odd, and prime numbers, storing each category in separate files. This involves file I/O operations and number classification algorithms. Syntax FILE *fopen(const char *filename, const char *mode); int fscanf(FILE *stream, const char *format, ...); int fprintf(FILE *stream, const char *format, ...); int fclose(FILE *stream); Note: This program requires creating an input file named "numbers.txt" with integers to process. Since file operations cannot be executed in the online compiler, the code structure is shown for educational purposes. Example ...

Read More

Styling Links Working with CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 251 Views

CSS allows us to style links as desired. We can format text by adding colors, backgrounds, changing sizes, and even adding animations to create pleasant visual effects. Links can be styled using various pseudo-classes to define their appearance in different states. Syntax a { property: value; } a:link { /* unvisited link */ } a:visited { /* visited link */ } a:hover { /* mouse over link */ } a:active { /* selected link */ } Pseudo-Class Order For proper functionality, the order of pseudo selectors must be: :link, ...

Read More

Methods of Valuation of Goodwill

Bitopi Kaashyap
Bitopi Kaashyap
Updated on 15-Mar-2026 425 Views

Goodwill represents the intangible value of a business beyond its tangible assets, reflecting the company's reputation, brand recognition, customer loyalty, and competitive advantages. It is an asset that cannot be physically touched but holds significant economic value for established businesses. Goodwill valuation is crucial during business acquisitions, mergers, or partnership changes. Key Concepts in Goodwill Valuation Goodwill is an intangible asset that represents the excess value of a business over its identifiable net assets. It encompasses factors such as brand reputation, customer relationships, employee expertise, proprietary technology, and market position. Companies with goodwill typically earn super-profits − profits ...

Read More

C program to print name inside heart pattern using for loop.

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

In C programming, creating a heart pattern with a name in the center is an interesting application of nested for loops. This program generates a heart shape using asterisks (*) and displays a user-entered name in the middle of the pattern. Syntax // Basic heart pattern structure for(i = start; i = end; i--) { // Lower triangular part } Algorithm Follow these steps to create a heart pattern with name − Step 1: Declare variables for loop counters, name array, and pattern size Step 2: Read the ...

Read More

Adjacent Sibling Selectors in CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 1K+ Views

The CSS adjacent sibling selector is used to select the adjacent sibling of an element. It selects only those elements which immediately follow the first selector. The + sign is used as a separator between the two selectors. div p span Element 1 Adjacent Sibling Element 3 + ...

Read More

C program to store the car information using dynamic linked list.

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

A linked list is a dynamic data structure that grows and shrinks during runtime using dynamic memory allocation. It consists of nodes, where each node contains data and a pointer to the next node. This makes it ideal for storing variable amounts of data like car information. Node Structure Each node in a linked list has two main components − Data − Stores the actual information (car model, color, year) Link − Pointer to the next node in the list Types of Linked Lists The types of linked lists in C programming are ...

Read More

Merits and Demerits of Flexible and Fixed Exchange Rate Systems

Bitopi Kaashyap
Bitopi Kaashyap
Updated on 15-Mar-2026 578 Views

Exchange rate refers to the value of one currency when compared to another currency, showing how much domestic currency is needed to purchase a unit of foreign currency. There are two main exchange rate systems: fixed exchange rate systems where governments or central banks intervene to maintain a stable currency value, and flexible exchange rate systems where currency values are determined by market forces of supply and demand. Key Concepts Fixed Exchange Rate System: The government or central bank actively intervenes in foreign exchange markets to maintain the currency's value within a narrow band or at a specific ...

Read More

Using the combination of Percentage and Em in CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 421 Views

We can use a combination of percentage and em to specify the font-size of elements for better compatibility of font. This allows us to have uniform text across different browsers. Both percentage and em are relative measurements that scale based on their parent elements, making them ideal for responsive design. Syntax selector { font-size: value; } Where value can be a percentage (e.g., 80%, 120%) or em unit (e.g., 1.2em, 2em). Percentages are relative to the parent element's font size, while em units are also relative to the parent's font size. ...

Read More

C program to find the area of circle and cylinder using structures.

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

In C programming, we can calculate the area of a circle and the surface area and volume of a cylinder using structures to organize related data. A structure helps group related geometric properties like radius, height, and calculated areas in a single unit. Syntax struct shape { float radius; float height; float areacircle; float areacylinder; float volumecylinder; }; Formulas Used Area of circle: π × radius² Surface area of cylinder: 2π × radius ...

Read More

Including CSS in HTML Documents

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 253 Views

Adding CSS to an HTML document enhances the appearance of the web page. Various styles for images, borders, margins, and colors can be easily added. To include CSS in HTML documents, we can either include them internally, inline, or link an external file. Syntax /* Inline CSS */ /* Internal CSS */ selector { property: value; } /* External CSS */ Method 1: Inline CSS With inline CSS, use the style attribute ...

Read More
Showing 1–10 of 61,284 articles
« Prev 1 2 3 4 5 6129 Next »
Advertisements