Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C++ c-puzzle

Change/add only one character and print ‘*’ exactly 20 times

In the below code, change/add only one character and print ‘*’ exactly 20 times. int main() { int i, n = 20; for (i = 0; i < n; i--) ...
C C++ cpp-input-output

How to change the output of printf() in main() ?

Consider the following program. Change the program so that the output of printf is always 10. It is not allowed to change main(). Only fun() can be changed. ...
CSS Technical Scripter Web Technologies

Change an HTML5 input placeholder color with CSS

In most of the browsers, the placeholder (in input tag) is of grey color, to change the color of this placeholder, non-standard ::placeholder selectors can be used, ...
CSS HTML Web Technologies

HTML onchange Event Attribute

The onchange event attribute works when the value of the element changes and select the new value from the List. It is a part of event attribute. It is similar to oni...
CSS HTML Web Technologies

HTML onhashchange Event Attribute

This attribute works when there has been changes to the anchor part. The anchor part starts with ‘#’ symbol of the current URL. Syntax: <element onha...
Java java-basics Java

How to swap or exchange objects in Java?

How to swap objects in Java? Let’s say we have a class called “Car” with some attributes. And we create two objects of Car, say car1 and car2, ho...
CSS HTML JavaScript

Change an element class JavaScript

The class name is used as a selector in HTML which helps to give some value to the element attributes. The document.getElementById() method is used to return the elem...
JavaScript JavaScript-atomics javascript-functions

Atomics.exchange( ) In JavaScript

What is Atomics? The Atomics is an object in JavaScript which provides the ability to perform atomic operations as static methods. Just like the Math object in JavaS...
JavaScript javascript-array JavaScript-atomics

Atomics.compareExchange( ) In JavaScript

What is Atomics? The Atomics is an object in JavaScript which provides the ability to perform atomic operations as static methods. Just like the Math object in JavaS...
JavaScript JQuery jQuery-Events

jQuery change() with Examples

The change() is an inbuilt method in jQuery that is used to change the value of the input fields. This method is worked only on the “input, textarea and select...

Subscribe to Our Newsletter