Articles on Trending Technologies

Technical articles with clear explanations and examples

Add two unsigned numbers using bits in C++.

Nishu Kumari
Nishu Kumari
Updated on 15-Mar-2026 882 Views

In this problem, we are given two unsigned numbers, and we need to add them using bits in C. Bits are binary digits that can be either 0 or 1. Unsigned numbers are positive numbers represented by these bits. To add two unsigned numbers, we add their bits one by one using binary addition rules. Syntax unsigned int addBits(unsigned int a, unsigned int b); Binary Addition Rules Binary addition works like decimal addition, but with simpler rules − 0 + 0 = 0 0 ...

Read More

CSS3 Left to right Gradient

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 272 Views

CSS3 left to right gradient creates a smooth color transition that flows horizontally from the left edge to the right edge of an element. This is achieved using the linear-gradient() function with the to right direction. Syntax selector { background: linear-gradient(to right, color1, color2, ...); } Example: Basic Left to Right Gradient The following example creates a red to blue gradient flowing from left to right − .gradient-box { height: 100px; ...

Read More

CSS3 Multi color Gradients

Prabhas
Prabhas
Updated on 15-Mar-2026 272 Views

CSS3 multi-color gradients allow you to create smooth transitions between multiple colors in a single gradient. Unlike simple gradients that use only two colors, multi-color gradients can include three or more colors to create vibrant, complex color effects. Syntax selector { background: linear-gradient(direction, color1, color2, color3, ...); } Example The following example demonstrates a multi-color linear gradient with seven colors − #grad { height: 100px; ...

Read More

Add two numbers represented by two arrays in C Program

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 2K+ Views

A number represented by an array is stored in such a form that each digit of the number is represented by an element of the array. For example − Number 234 in array is {2, 3, 4} To add two such numbers we will first add digits from the least significant position and if the sum is greater than 9, we propagate the carry. We continue this process for consecutive digits until all digits are processed. Syntax void addArrays(int arr1[], int arr2[], int size1, int size2, int result[]); Algorithm To ...

Read More

CSS3 Repeat Radial Gradients

varun
varun
Updated on 15-Mar-2026 312 Views

The CSS repeating-radial-gradient() function creates a radial gradient that repeats in a circular pattern. Unlike regular radial gradients, the pattern repeats continuously from the center outward, creating concentric rings of color transitions. Syntax selector { background: repeating-radial-gradient(shape size at position, color-stop1, color-stop2, ...); } Possible Values ParameterDescription shapeOptional. circle or ellipse (default) sizeOptional. closest-side, farthest-side, closest-corner, farthest-corner positionOptional. Position of the center (e.g., center, top left) color-stopColor followed by optional position percentage or length Example: Basic Repeating Radial Gradient The following example creates a repeating radial ...

Read More

C/C++ Tricky Programs

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 6K+ Views

Here are 10 tricky C programming challenges that will test your understanding of language fundamentals and creative problem-solving techniques. 1. Program to Print Double Quotes in C Printing double quotes in C requires escape sequences since quotes are used to delimit string literals. We use the backslash escape sequence " to print quotes − #include int main() { printf(""Tutorials Point ""); return 0; } "Tutorials Point " 2. Print Numbers 1 to 10 Without Loops or Goto When loops and ...

Read More

CSS3 Radial Gradients

usharani
usharani
Updated on 15-Mar-2026 194 Views

CSS3 radial gradients create smooth color transitions that emanate outward from a center point, forming circular or elliptical patterns. Unlike linear gradients that flow in straight lines, radial gradients spread from the center to the edges. Syntax selector { background: radial-gradient(shape size at position, color-stop1, color-stop2, ...); } Possible Values ParameterDescription shapecircle or ellipse (default: ellipse) sizeclosest-side, farthest-side, closest-corner, farthest-corner positioncenter, top, bottom, left, right, or specific coordinates color-stopColor and optional position (percentage or length) Example: Basic Radial Gradient The following example creates a simple radial ...

Read More

CSS3 Linear gradients

varma
varma
Updated on 15-Mar-2026 214 Views

CSS3 linear gradients allow you to create smooth transitions between two or more colors in a linear direction. Instead of using solid background colors, you can create beautiful gradients that transition from one color to another along a straight line. Syntax selector { background: linear-gradient(direction, color1, color2, ...); } Possible Values ParameterDescription directionOptional. Defines the direction (to top, to right, 45deg, etc.) color1, color2, ...Two or more colors for the gradient transition Example: Basic Linear Gradient The following example creates a linear gradient from pink to ...

Read More

C/C++ Program for Greedy Algorithm to find Minimum number of Coins

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 6K+ Views

A greedy algorithm is an algorithmic approach used to find an optimal solution for the given problem. Greedy algorithm works by finding locally optimal solutions (optimal solution for a part of the problem) of each part so that the global optimal solution can be found. In this problem, we will use a greedy algorithm to find the minimum number of coins/notes that could makeup to the given sum. For this we will take under consideration all the valid coins or notes i.e. denominations of { 1, 2, 5, 10, 20, 50, 100, 200, 500, 2000 }. We need to ...

Read More

CSS3 Opacity property

Ankitha Reddy
Ankitha Reddy
Updated on 15-Mar-2026 145 Views

The CSS3 opacity property controls the transparency level of an element. It allows you to make elements partially or completely transparent, where a value of 1 means completely opaque and 0 means completely transparent. Syntax selector { opacity: value; } Possible Values ValueDescription 0.0Completely transparent (invisible) 0.550% transparent 1.0Completely opaque (default) Example: Different Opacity Levels The following example demonstrates different opacity values applied to colored elements − .box { ...

Read More
Showing 21351–21360 of 61,297 articles
Advertisements