Articles on Trending Technologies

Technical articles with clear explanations and examples

Explain scope of a variable in C language.

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

In C programming, the scope of a variable defines where in the program that variable can be accessed or referenced. Variable scope determines the visibility and accessibility of variables throughout different parts of your program. Syntax // Global scope data_type variable_name; int main() { // Local scope data_type variable_name; return 0; } Types of Variable Scope C language supports two main types of variable scope − Local Scope: Variables declared inside a function or block are only accessible within ...

Read More

The ::first-line Pseudo-element in CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 126 Views

The ::first-line pseudo-element in CSS selects and styles the first line of text within an element. It is denoted by double colons and allows you to apply specific formatting to just the first line of a block-level element's content. Syntax selector::first-line { property: value; } Allowed Properties The ::first-line pseudo-element only accepts certain CSS properties − Property TypeExamples Font propertiesfont-family, font-size, font-weight Color propertiescolor, background-color Text propertiestext-decoration, text-transform, line-height Border propertiesborder, border-radius Example: Basic First Line Styling The following example applies background color and text ...

Read More

C program for Addition and Multiplication by 2 using Bitwise Operations.

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

Bitwise operators in C operate directly on bits (binary representation) of operands. They are highly efficient for arithmetic operations like multiplication and division by powers of 2. The left shift () operators can perform these operations faster than traditional arithmetic operators. Syntax // Multiplication by 2 result = number > 1; Bitwise Operators Overview Operator ...

Read More

Meaning and Objective of Tabulation

Bitopi Kaashyap
Bitopi Kaashyap
Updated on 15-Mar-2026 1K+ Views

Tabulation refers to the systematic arrangement of data in rows and columns to facilitate comparison, analysis, and understanding. It is a fundamental statistical tool that transforms raw data into an organized format, making it easier to identify patterns, trends, and relationships within the dataset. Key Concepts Tabulation is more than simply placing data in a table format. It follows specific statistical principles to ensure accuracy, clarity, and meaningful presentation. The process involves organizing data according to certain characteristics or variables, enabling researchers and analysts to draw meaningful conclusions from complex datasets. Statisticians and researchers rely on tabulation ...

Read More

Stacking Elements in Layers using z-index Property using CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 394 Views

The CSS z-index property is used to control the stacking order of positioned elements. Elements with higher z-index values appear in front of elements with lower values, creating layers on the page. NOTE − If overlapping elements do not have z-index specified, the element that appears last in the HTML document will show up on top. Syntax selector { z-index: value; position: relative | absolute | fixed | sticky; } Important: The z-index property only works on positioned elements (position: relative, absolute, fixed, or sticky). ...

Read More

C program to print area of triangle, square, circle, rectangle and polygon using switch case.

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

This C program calculates the area of different geometric shapes using a switch case statement. The program provides a menu−driven interface where users can select from triangle, square, circle, rectangle, and parallelogram area calculations. Syntax switch (expression) { case constant1: // statements break; case constant2: // statements break; default: ...

Read More

Meaning and Objectives of Classification of Data

Bitopi Kaashyap
Bitopi Kaashyap
Updated on 15-Mar-2026 1K+ Views

Classification of data refers to organizing data into various relevant categories for simplicity and ease while using them. In economics and statistics, data classification helps convert raw, unorganized information into meaningful groups based on common properties, making analysis and interpretation more efficient and accurate. Key Concepts Data classification is the systematic process of organizing data into homogeneous groups depending on their common characteristics. When data is organized based on the properties of these categories, it becomes easier to analyze, interpret, and use for research purposes. Raw data is often scattered and difficult to understand, but proper classification transforms it ...

Read More

Anchor Pseudo-classes in CSS

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

Using CSS pseudo-class selectors, namely :active, :hover, :link and :visited we can style different states of a link/anchor. For proper functionality, the order of these selectors should be − :link :visited :hover :active Syntax a:link { /* styles for unvisited links */ } a:visited { /* styles for visited links */ } a:hover { /* styles when hovering over links */ } a:active ...

Read More

Write a C program for guessing the number game.

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

A number guessing game is a classic programming exercise where the computer has a secret number and the user must guess it. The program provides hints after each guess, telling whether the guess is too high or too low, until the correct number is found. Syntax do { if (guess == secretNumber) { // Correct guess - exit loop } else if (guess < secretNumber) { // Give "too low" hint ...

Read More

C program to count a letter repeated in a sentence.

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

In C programming, counting the frequency of a specific character in a string is a common task. This program prompts the user to enter a sentence and a character, then counts how many times that character appears in the sentence using strlen() function for string length determination. Syntax for(i = 0; i < strlen(string); i++) { if(string[i] == character) { count++; } } Algorithm The logic to count character frequency involves the following steps − Read ...

Read More
Showing 20471–20480 of 61,297 articles
Advertisements