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
How to use Pre-defined mathematical function in C language?
In C programming, pre-defined mathematical functions are available in the math.h header file. These functions provide various mathematical operations like power, square root, trigonometric calculations, logarithms, and more. They help perform complex mathematical calculations easily without implementing the logic from scratch. Syntax #include double function_name(double argument); Common Mathematical Functions Here are some commonly used mathematical functions − Function Description Example pow(x, y) Returns x raised to power y pow(2, 3) = 8.0 sqrt(x) Returns square root of x sqrt(16) = 4.0 cbrt(x) Returns cube ...
Read MoreWhat are NFTs?
NFTs (Non-Fungible Tokens) are unique digital assets created using blockchain technology that enable creators to establish ownership and authenticity of digital content. Unlike cryptocurrencies, NFTs are non-interchangeable, meaning each token represents a one-of-a-kind digital item that cannot be replicated or replaced. Understanding NFTs NFTs or Non-fungible tokens are crypto digital assets designed with the aid of blockchain technology. This is a kind of cryptocurrency loaded with personal data of the NFT owner. By using this asset class, creators or innovators can claim the right or title or ownership on the creations they make or share online. From antiques ...
Read MoreAnimate transform property with CSS Animation
The CSS transform property can be animated using CSS animations to create smooth transitions and visual effects. By combining transform functions like rotate(), scale(), translate(), and skew() with keyframes, you can create engaging animations. Syntax @keyframes animation-name { from { transform: initial-value; } to { transform: final-value; } } selector { animation: animation-name duration timing-function; } Example 1: ...
Read MoreWhat are the input and output for strings in C language?
An array of characters (or) collection of characters is called a string. In C programming, strings are null-terminated character arrays that end with the special character '\0'. Syntax // Input functions for strings scanf("%s", string_name); fgets(string_name, size, stdin); // Output functions for strings printf("%s", string_name); puts(string_name); Method 1: Using scanf() and printf() The scanf() function reads strings until it encounters whitespace, while printf() displays the complete string − #include int main() { char name[30]; printf("Enter your name: "); ...
Read MoreAnimate vertical-align property with CSS Animation
The CSS vertical-align property can be animated using CSS animations to create smooth transitions between different vertical alignment values. This is particularly useful for animating inline elements like images, text, or inline-block elements. Syntax selector { vertical-align: initial-value; animation: animation-name duration; } @keyframes animation-name { percentage { vertical-align: target-value; } } Example: Animating Image Vertical Alignment The following example demonstrates how to animate the vertical alignment of an image ...
Read MoreExplain the END OF FILE (EOF) with a C Program
The End of File (EOF) is a special marker that indicates the end of input or when there are no more characters to read from a file or input stream. In C, EOF is typically defined as −1 and is returned by input functions when they reach the end of a file or encounter an error. Syntax EOF How EOF Works When reading from files or standard input, functions like getchar(), fgetc(), and getc() return EOF when they reach the end of the input stream. On Windows, pressing Ctrl+Z generates EOF, while on Unix/Linux ...
Read MoreTypes of Risks in Insurance
Insurance risk refers to the possibility of loss or damage that could affect individuals, businesses, or assets, requiring compensation from insurance companies. Understanding different types of risks helps both insurers and policyholders assess coverage needs and premium calculations. These risks are categorized based on their nature, origin, and financial impact. Key Concepts Risk in insurance represents the uncertainty of loss that insurance companies agree to cover in exchange for premium payments. When policyholders purchase insurance, they transfer their risk exposure to the insurer. The insurance company pools these risks across many policyholders and uses statistical models to predict ...
Read MoreCSS rest-after Speech Media property
The CSS rest-after property is used in speech media to specify a pause or rest period after an element is spoken. This property is particularly useful for screen readers and text-to-speech applications to create natural-sounding speech patterns. Syntax selector { rest-after: time | none | x-weak | weak | medium | strong | x-strong; } Possible Values ValueDescription Sets pause duration in seconds (s) or milliseconds (ms) noneNo pause after the element x-weakExtra weak pause (shortest) weakWeak pause mediumMedium pause (default) strongStrong pause x-strongExtra strong pause (longest) ...
Read MoreHow to access an array element in C language?
An array is a group of related data items that share a common name. A particular value in an array is identified by using its "index number" or "subscript". The advantage of an array is the ability to use a single name to represent a collection of items and to refer to an item by specifying the item number, enabling the development of concise and efficient programs. Syntax datatype array_name[size]; array_name[index] = value; // Assigning value variable = array_name[index]; // Accessing value Where index starts from 0 and goes up to (size-1). ...
Read MoreCSS top property with Animation
The CSS top property specifies the vertical position of a positioned element. When combined with CSS animations, you can create smooth movement effects by animating changes to the top value over time. Syntax selector { top: value; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { percentage { top: value; } } Example: Animating Top Property The following example demonstrates how to animate the top property to create a ...
Read More