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
C Program to print all ASCII values.
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numeric values to characters. In C programming, we can print ASCII values of characters using format specifiers without explicitly converting characters to integers. Syntax printf("%c \t %d", i, i); Method 1: Printing ASCII Values from A to z (65 to 122) This example prints ASCII values for uppercase letters, special characters, and lowercase letters − #include int main() { int i; printf("Character \t ASCII Value"); // Print ASCII values from A to z for (i = 65; i = 32 && i
Read MoreUnderstanding CSS Visual Formatting
Visual Formatting in CSS is based on the Box Model. The CSS Visual Formatting is a model corresponding to an algorithm which processes and transforms each element of the document to generate one or more boxes that conform to the CSS Box Model. The layout of generated boxes depends on several properties such as − Dimensions − Width and height of the element Type − Block-level, inline-level, or inline-block Positioning − Normal flow, absolute, relative, or float Document tree relationships − ...
Read MoreMeaning and Reasons for International Trade
International trade refers to the exchange of goods and services between two or more countries across national borders. It enables countries to access products they cannot produce domestically while selling their surplus production to global markets. This economic activity forms the backbone of the global economy, allowing nations to specialize in their areas of comparative advantage and achieve mutual benefits through trade relationships. Key Concepts Before understanding international trade, it's essential to grasp two fundamental concepts: Import − When a country purchases products from the international marketplace Export ...
Read MoreC program to remove spaces in a sentence using string concepts.
In C, removing spaces from a string involves iterating through the string and eliminating space characters. This can be accomplished using string manipulation techniques where we shift characters to overwrite spaces. Syntax while(string[i] != '\0') { if(string[i] == ' ') { // Shift characters left to remove space } i++; } String Declaration and Initialization An array of characters is called a string. Given below is the declaration of a string − ...
Read MoreThe :last-child Pseudo-class in CSS
The CSS :last-child pseudo-class selects an element that is the last child element of its parent. This powerful selector allows you to apply specific styles to the final element in a group without adding additional classes or IDs. Syntax selector:last-child { /* CSS declarations */ } Example 1: Styling Table Columns The following example demonstrates how to style the last column of a table with a right border − table { margin: ...
Read MoreMeaning and Types of Economic System
An economic system is the set of institutions and mechanisms that societies use to organize the production, distribution, and consumption of goods and services within a given region or country. These systems determine how resources like land, labor, capital, and technology are allocated and utilized. Economic systems vary widely across the world, reflecting different approaches to managing scarcity and meeting societal needs. An economic system represents a complex framework containing various institutions, governing bodies, and stakeholders that coordinate economic activities. The type of economic system adopted by a country fundamentally shapes its development trajectory, income distribution, and overall economic ...
Read MoreDeletion of head and tail element logic in a linked list using C language.
In C programming, deleting head and tail elements from a linked list are fundamental operations that require careful pointer manipulation to maintain list integrity. A linked list is a dynamic data structure where each node contains data and a pointer to the next node. Syntax // Delete head node void deleteHead(); // Delete tail node void deleteTail(); Node Structure First, let's define the basic node structure for our linked list − Data Next Node Structure ...
Read MoreDifferent Media Types in CSS
CSS Media Types are device types on which a document is rendered, allowing you to define specific styles for different output devices. This enables you to create optimized layouts for screens, printers, and other media. Syntax /* Using @media rule */ @media media-type { /* CSS rules */ } /* Using @import rule */ @import url("stylesheet.css") media-type; /* Using link element */ Media Types Media Type Description all Stylesheet applies to all media type devices print Stylesheet applies to printers ...
Read MoreExplain the pointers for inter-function communication in C language.
Pointers enable inter-function communication in C by allowing functions to modify variables in the calling function's scope. This is essential for pass-by-reference behavior and returning multiple values from a single function. Syntax // Function declaration with pointer parameters return_type function_name(data_type *pointer_param); // Function call passing address function_name(&variable); Key Concepts Pass-by-value: Function receives a copy of the variable's value Pass-by-reference: Function receives the address of the variable using pointers Multiple return values: Use pointers to modify multiple variables in the calling function Example: Returning Multiple Values The following program demonstrates ...
Read MoreMeasuring Central Tendency: Mode, Median, Mean
The measure of central tendency, also known as measures of center or central location, refers to summary statistics that represent the center or typical value of a dataset with a single value. Three key measures of central tendency are the mode, median, and mean, each providing different insights into the distribution's center. Formulas Mean (Arithmetic Average): $$\mathrm{Mean = \frac{\sum x_i}{n}}$$ Median: For odd n: Middle value when data is ordered For even n: $$\mathrm{Median = \frac{x_{n/2} + x_{(n/2)+1}}{2}}$$ Mode: The value(s) that appear most frequently in ...
Read More