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
Explain variable declaration and rules of variables in C language
In C programming, a variable is a named memory location used to store data values. Variables are fundamental building blocks that allow programs to manipulate and store information during execution. What is a Variable? It is the name for memory location that may be used to store a data value. A variable may take different values at different times during execution. A variable name may be chosen by the programmer in a meaningful way, so as to reflect its function or nature in the program. For example: sum, avg, total, price, count etc. Rules ...
Read MoreUsage of CSS grid-auto-rows property
The CSS grid-auto-rows property sets the default height for grid rows that are created automatically (implicitly) when grid items don't fit in the explicitly defined rows. This property is essential for controlling the sizing of rows in CSS Grid layouts. Syntax selector { grid-auto-rows: value; } Possible Values ValueDescription lengthFixed size in px, em, rem, etc. %Percentage of the grid container's height min-contentMinimum size needed to fit content max-contentMaximum size needed for content autoSize based on content (default) frFraction of available space Example: Fixed Row Height ...
Read MoreUsage of CSS grid-row-start property
The CSS grid-row-start property specifies on which row line a grid item will start. This property allows you to control the exact row position where a grid item begins, giving you precise control over grid layout positioning. Syntax selector { grid-row-start: value; } Possible Values ValueDescription autoDefault value. The item will be placed automatically line-numberSpecifies which row line to start at (1, 2, 3, etc.) line-nameSpecifies a named grid line to start at span nSpecifies how many rows the item will span Example: Basic Grid Row Start ...
Read MoreExplain about link and definition section in C language
In C programming, the link section and definition section are parts of preprocessor directives that provide instructions to the compiler before the actual compilation begins. The link section uses #include directives to include header files containing function declarations and definitions from system libraries. The definition section uses #define directives to create symbolic constants and macros. Syntax #include // Link section #define CONSTANT_NAME value // Definition section Link Section The link section tells the compiler which header files to include. This allows access to predefined functions and their ...
Read MoreFiscal Consolidation
Fiscal consolidation refers to a strategic government policy designed to reduce fiscal deficits and public debt through increased revenues and/or reduced expenditures. This approach aims to restore fiscal sustainability and strengthen the overall financial health of the economy. Fig 1: Government spending on multiple categories Formula The basic formula for measuring fiscal consolidation progress involves calculating the fiscal deficit: $$\mathrm{Fiscal\ Deficit = Total\ Government\ Expenditure - Total\ Government\ Revenue}$$ Key measures include: $$\mathrm{Fiscal\ Deficit\ to\ GDP\ Ratio = \frac{Fiscal\ Deficit}{Nominal\ GDP} \times 100}$$ $$\mathrm{Debt\ to\ GDP\ Ratio = \frac{Total\ Public\ Debt}{Nominal\ GDP} ...
Read MoreC program to handle integer data files using file concepts
In C, file handling allows us to work with different types of data including integers. This program demonstrates how to read integer data from one file and separate odd and even numbers into different files using file concepts. Syntax FILE *fopen(const char *filename, const char *mode); int putw(int w, FILE *stream); int getw(FILE *stream); int fclose(FILE *stream); Approach The program follows these steps − Create a DATA file and write integers to it Read integers from DATA file Separate odd numbers into ODD file and even numbers into EVEN file Display contents ...
Read MoreSet the flex items vertically from bottom to top with CSS
Use the flex-direction property with column-reverse value to set the flex items vertically from bottom to top. This reverses the normal column direction, making items stack from the bottom upward. Syntax .container { display: flex; flex-direction: column-reverse; } Example The following example demonstrates how to arrange flex items vertically from bottom to top using column-reverse − .mycontainer { display: flex; ...
Read MoreSet whether the text should be overridden to support multiple languages with CSS
The CSS unicode-bidi property controls how bidirectional text is handled in HTML elements. This property is essential when working with documents that contain text in multiple languages with different writing directions, such as mixing English (left-to-right) with Arabic or Hebrew (right-to-left). Syntax selector { unicode-bidi: value; } Possible Values ValueDescription normalDefault value. Does not use additional embedding level bidi-overrideCreates an additional level of embedding and overrides the inherent directionality isolateIsolates the element from its surroundings for bidirectional text algorithm embedCreates an additional level of embedding Example: Bidirectional ...
Read MoreExplain the pre-processor directives in C language
The preprocessor is a tool that processes the source code before it passes through the compiler. It works as an initial phase of compilation where it operates under the control of different command lines or directives. Syntax #directive_name [parameters] Pre-processor Directives in C Preprocessor directives are placed in the source program before the main function, begin with the symbol "#" in column one and do not require a semicolon at the end. The commonly used preprocessor directives are − #define #undef #include #ifdef #endif #if #else The preprocessor directives ...
Read MoreFed Hike
Fed hike refers to the Federal Reserve's decision to increase the federal funds rate, which is the interest rate at which banks lend money to each other overnight. This monetary policy tool significantly affects the economy by influencing borrowing costs, consumer spending, and inflation levels. Understanding Fed Hike The Federal Reserve raises interest rates to control inflation and maintain economic stability. When the economy grows too quickly and inflation rises above the Fed's 2% target, increasing interest rates helps cool down economic activity by making borrowing more expensive and encouraging saving. The Federal Open Market Committee (FOMC), ...
Read More