Articles on Trending Technologies

Technical articles with clear explanations and examples

Introduction to Backtracking

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

Backtracking is a systematic technique for solving computational problems by exploring all possible solutions incrementally and abandoning paths that cannot lead to a valid solution. It uses recursive calling to build solutions step by step, removing invalid solutions based on problem constraints. Types of Backtracking Problems Backtracking algorithm is applied to three main types of problems − Decision problems − Find any feasible solution Optimization problems − Find the best solution among all feasible solutions Enumeration problems − Find all feasible solutions to the ...

Read More

Role of CSS :not (selector) Selector

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

The CSS :not() selector is used to select and style every element that does not match the specified selector. This pseudo-class selector allows you to apply styles to all elements except those that match a particular criterion, making it useful for creating exclusion-based styling rules. Syntax :not(selector) { property: value; } Example: Basic :not() Selector The following example demonstrates how to style all elements except paragraphs − p { color: red; ...

Read More

Role of CSS :link Selector

Giri Raju
Giri Raju
Updated on 15-Mar-2026 296 Views

The CSS :link selector is a pseudo-class used to style all unvisited links on a webpage. It targets anchor elements () that have an href attribute and have not been visited by the user yet. Syntax a:link { property: value; } Example The following example demonstrates how to use the :link selector to style unvisited links with an orange background color − a:link { background-color: orange; ...

Read More

Role of CSS :last-child Selector

George John
George John
Updated on 15-Mar-2026 316 Views

The CSS :last-child selector is a pseudo-class that targets an element that is the last child of its parent container. This selector is commonly used to apply specific styles to the final element in a group, such as removing bottom margins or adding special formatting. Syntax selector:last-child { property: value; } Example: Styling Last Paragraph The following example demonstrates how to style the last paragraph element with an orange background − p:last-child { ...

Read More

MCQ on Memory allocation and compilation process in C

Arnab Chakraborty
Arnab Chakraborty
Updated on 15-Mar-2026 594 Views

Here we will see some MCQ questions on Memory Allocation and Compilation Processes in C programming language. Question 1: Union Memory Allocation What will be the output of the following code − #include #include int main() { union my_union { int i; float f; char c; }; union my_union* u; u = (union ...

Read More

Role of CSS :last-of-type Selector

vanithasree
vanithasree
Updated on 15-Mar-2026 222 Views

The CSS :last-of-type selector targets the last element of its type among siblings within the same parent element. It's particularly useful for styling the final occurrence of specific HTML elements without needing to add classes or IDs. Syntax element:last-of-type { property: value; } Example: Basic Usage The following example applies an orange background to the last paragraph element − p:last-of-type { background-color: orange; padding: ...

Read More

C Program to check if a number is divisible by any of its digits

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 2K+ Views

Given a number n, the task is to find if any digit in the number divides the number completely. For example, the number 128625 is divisible by 5, which is also present in the number. Syntax int isDivisibleByDigit(long long int n); Algorithm The approach used is as follows − Extract each digit from the number using modulo operation Check if the original number is divisible by that digit If divisible, return true; otherwise continue with the next digit Remove the last digit by dividing the number by 10 Repeat until all digits ...

Read More

Role of CSS:lang Selector

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

The CSS :lang selector allows you to apply specific styles to elements based on their language attribute. This pseudo-class selector targets elements that have a specific lang attribute value, making it useful for multilingual websites where different languages may need different styling. Syntax :lang(language-code) { /* CSS properties */ } Example: Styling French Text The following example applies a green background to all paragraph elements with French language attribute − p:lang(fr) { ...

Read More

C Program for product of array

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 10K+ Views

Given an array arr[n] of n number of elements, the task is to find the product of all the elements of that array. Like we have an array arr[7] of 7 elements so its product will be like − a[0] a[1] a[2] ... a[n-1] × × × × Product = a[0] × a[1] × a[2] × ... × a[n-1] ...

Read More

Style all elements with an invalid value with CSS

radhakrishna
radhakrishna
Updated on 15-Mar-2026 249 Views

To style all elements with an invalid value, use the CSS :invalid pseudo-class selector. This selector targets form elements that contain invalid data based on their type, pattern, or required attributes. Syntax selector:invalid { property: value; } How It Works The :invalid pseudo-class automatically applies styles to form elements when their values don't meet validation criteria. This includes invalid email formats, numbers outside specified ranges, or empty required fields. Example: Invalid Email Input The following example styles an email input with a red background when the email format ...

Read More
Showing 21221–21230 of 61,297 articles
Advertisements