Articles on Trending Technologies

Technical articles with clear explanations and examples

C program to convert days into months and number of days

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

In C programming, we can convert a total number of days into months and remaining days using simple arithmetic operations. This conversion assumes each month has 30 days on average. Syntax months = total_days / 30; remaining_days = total_days % 30; Algorithm The algorithm to convert days into months and remaining days is as follows − Step 1: Start Step 2: Declare variables for months, days, and total_days Step 3: Read total number of days from user Step 4: Calculate months using division months ...

Read More

Prepaid Expenses

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

A prepaid expense is an expenditure made in advance for goods or services before receiving them or benefiting from them. It represents a payment today for value that will be received in the future. Prepaid expenses are initially recorded as assets on the balance sheet since they provide future economic benefits to the company. Key Concepts Prepaid expenses follow the matching principle in accounting, where expenses are recorded in the same period as the benefits are received. When payment is made in advance, it creates an asset that is gradually converted to an expense as the company consumes ...

Read More

The outline-width Property in CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 78 Views

The outline-width property can be defined to draw a line of specific thickness around the borders of the element, but the outline is not a part of an element's dimensions, unlike border property. Syntax selector { outline-width: value; } Possible Values ValueDescription thinCreates a thin outline (typically 1px) mediumCreates a medium outline (typically 3px) thickCreates a thick outline (typically 5px) lengthCreates outline with specific width (px, em, rem, etc.) NOTE − The outline-style property needs to be defined before declaring outline-width. Example 1: Thin Outline ...

Read More

Explain the concept of one and two dimensional array processing using C language

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

Arrays in C programming are collections of elements of the same data type stored in contiguous memory locations. Array processing involves operations like reading, writing, and manipulating array elements. Let us explore one-dimensional and two-dimensional array processing. Syntax /* 1D Array Declaration */ datatype array_name[size]; /* 2D Array Declaration */ datatype array_name[rows][columns]; 1D Array Processing One-dimensional arrays store elements in a linear sequence. Here's how to read and write elements − Reading Elements into 1D Array int num[5]; int i; for(i=0; i

Read More

Setting Background Image using CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 892 Views

The CSS background-image property is used to set an image as a background for the selected element. The url() function is used in the background-image property to specify the image source. Syntax selector { background-image: value; } Possible Values ValueDescription url('URL')The image URL source linear-gradient()Creates a linear gradient as background radial-gradient()Creates a radial gradient as background conic-gradient()Creates a conic gradient as background repeating-linear-gradient()Repeats a linear gradient pattern repeating-radial-gradient()Repeats a radial gradient pattern repeating-conic-gradient()Repeats a conic gradient pattern Example: Basic Background Image This example shows how to set ...

Read More

C Program to check the type of character entered

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

In C programming, determining the type of a character involves checking whether the entered character is an uppercase letter, lowercase letter, digit, or special character. This can be accomplished by examining the ASCII value of the character and comparing it against specific ranges. Syntax if (character >= 'A' && character = 'a' && character = '0' && character = 65 && ch = 97 && ch = 48 && ch = 'A' && ch = 'a' && ch = '0' && ch

Read More

Power Infrastructure and Generation

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

Power infrastructure and generation refers to the comprehensive system of energy production, transmission, and distribution that forms the backbone of a nation's economic development. It encompasses various energy sources including coal, oil, gas, hydro, nuclear, and renewable sources that collectively meet the energy demands of industries, households, and transportation systems. Adequate power infrastructure is essential for sustained economic growth and improved quality of life. Key Components of Power Infrastructure Power infrastructure consists of three critical components that work together to deliver electricity from source to end-user: Generation − Power plants that convert primary energy sources into ...

Read More

C program to find in which quadrant the coordinates lie.

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

In C programming, determining which quadrant coordinates lie in is a fundamental problem in coordinate geometry. A coordinate system is divided into four quadrants based on the signs of the x and y coordinates. Syntax if (x > 0 && y > 0) // First quadrant else if (x < 0 && y > 0) // Second quadrant else if (x < 0 && y < 0) // Third quadrant else if (x > 0 && y < 0) // Fourth ...

Read More

Embedded or internal Style Sheets in CSS

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

CSS files can be embedded internally by declaring them in the tag. This decreases the load time of the webpage. Although embedded CSS declarations allow dynamic styles, it should be downloaded at every page request as internal CSS can't be cached. Internal CSS are declared in the tag inside the tag. Syntax The syntax for embedding CSS files is as follows − selector { property: value; } Example 1: Internal Style Sheet for Styling a div ...

Read More

Setting Margin Space around elements using CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 93 Views

The CSS margin property is used to create space around elements, outside of their borders. The margin property is a shorthand for margin-top, margin-right, margin-bottom, and margin-left. Let's say we have set the following margins using the shorthand property − margin: 10px 45px 35px 70px; The above means − 10 pixels for the top margin 45 pixels for the right margin 35 pixels for the bottom margin 70 pixels for the left margin Syntax selector { margin: value; } Possible Values ...

Read More
Showing 20391–20400 of 61,297 articles
Advertisements