Articles on Trending Technologies

Technical articles with clear explanations and examples

How floats are stored in C compiler?

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

In C programming language, float is a short term for floating point. Understanding how floats are stored internally helps developers work with precision and memory optimization effectively. IEEE 754 Standard Floating point numbers are represented using the IEEE 754 standard format, which consists of three components − Sign bit: 1 bit that denotes the sign (0 for positive, 1 for negative) Exponent: 8 bits for float (11 bits for double) stored with a bias Mantissa (Significand): 23 bits for float (52 bits for double) Syntax float variable_name = value; // IEEE 754 ...

Read More

CSS Grid Lines

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 1K+ Views

CSS Grid Lines are the invisible horizontal and vertical lines that form the structure of a CSS grid container. These lines define where grid items can be positioned and create the foundation for precise layout control. Each grid line is numbered, starting from 1, and can be referenced to place items exactly where you want them. Syntax /* Column positioning */ grid-column-start: line-number; grid-column-end: line-number; /* Row positioning */ grid-row-start: line-number; grid-row-end: line-number; /* Shorthand */ grid-column: start / end; grid-row: start / end; Understanding Grid Lines Grid lines are automatically created ...

Read More

What are primary data types in C language?

Aishwarya Naglot
Aishwarya Naglot
Updated on 15-Mar-2026 11K+ Views

Primary data types, also known as fundamental data types, are built-in data types in C programming language. The C compiler supports four fundamental data types that serve as the building blocks for storing and working with different kinds of data − Integer − for whole numbers Character − for single characters Float − for decimal numbers Double − for high-precision decimal numbers Syntax // Declaration syntax for primary data types int variable_name; char variable_name; float variable_name; double variable_name; Integer Data Type Integer data types store whole numbers (positive or negative) without ...

Read More

Role of CSS justify-content property center value

Rishi Rathor
Rishi Rathor
Updated on 15-Mar-2026 284 Views

The CSS justify-content property with the center value is used to align flex items to the center of the main axis in a flex container. This creates equal spacing on both sides of the flex items, centering them horizontally within their container. Syntax .container { display: flex; justify-content: center; } Example The following example demonstrates how to center flex items using justify-content: center − .mycontainer { ...

Read More

What are the different computer languages?

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

Programming languages are used to give instructions to the computer in a language which a computer can understand. They serve as a bridge between human logic and machine execution. Computer languages are classified into three types as follows − Machine languages Symbolic languages High level languages Computer Language Types Machine Language Binary Code 1010 1100 0011 Assembly Language Mnemonics MOV, ADD, JMP ...

Read More

Usage of CSS grid-gap property

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 187 Views

The CSS grid-gap property is used to set the spacing between grid rows and columns in a CSS Grid layout. This property provides a convenient shorthand for defining both row and column gaps simultaneously. Syntax selector { grid-gap: row-gap column-gap; } /* Or using single value for both */ selector { grid-gap: gap-value; } Possible Values ValueDescription lengthDefines the gap size in px, em, rem, etc. percentageDefines the gap as a percentage of the container row-gap column-gapTwo values: first for rows, second for columns ...

Read More

Define the width of each column in CSS Grid Layout

Nancy Den
Nancy Den
Updated on 15-Mar-2026 682 Views

The CSS grid-template-columns property is used to define the width of each column in a CSS Grid Layout. You can specify different widths for each column using various units like pixels, percentages, or fractional units. Syntax .grid-container { display: grid; grid-template-columns: value1 value2 value3 ...; } Possible Values ValueDescription pxFixed width in pixels %Percentage of container width frFractional unit for flexible sizing autoAutomatically sized based on content Example: Fixed Column Widths The following example creates a grid with three columns having fixed ...

Read More

Differentiate the NULL pointer with Void pointer in C language

Sindhura Repala
Sindhura Repala
Updated on 15-Mar-2026 13K+ Views

In C programming, NULL pointers and void pointers are two distinct concepts that serve different purposes. A NULL pointer represents a pointer that doesn't point to any valid memory location, while a void pointer is a generic pointer type that can point to any data type but requires type casting for dereferencing. Syntax /* NULL Pointer */ data_type *pointer_name = NULL; /* Void Pointer */ void *pointer_name; NULL Pointer A NULL pointer is a pointer that doesn't point to any valid memory location. It's used to indicate that the pointer is not currently ...

Read More

How to position text to center on an image with CSS

George John
George John
Updated on 15-Mar-2026 2K+ Views

To position text to center on an image, use the transform property in CSS along with absolute positioning. This technique allows you to overlay text perfectly centered on any image. Syntax .container { position: relative; } .centered-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } Example The following example demonstrates how to center text on an image − .container { ...

Read More

What happens if we include header file for two times in a C program?

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

In C programming, header files contain declarations of predefined functions, constants, and macros. When a header file is included multiple times in a program, the preprocessor automatically handles this situation to prevent compilation errors. What Happens with Duplicate Includes? When a header file is included twice or more times in a C program, the C preprocessor uses include guards (or header guards) to ensure that the contents of the header file are processed only once during compilation. Most standard C library headers like stdio.h, stdlib.h, etc., have built-in protection mechanisms. How Include Guards Work Standard header ...

Read More
Showing 20851–20860 of 61,297 articles
Advertisements