Priya Pallavi has Published 44 Articles

What does the volatile keyword mean in C++?

Priya Pallavi

Priya Pallavi

Updated on 10-Feb-2020 12:25:23

2K+ Views

volatile means two things −- The value of the variable may change without any code of yours changing it. Therefore whenever the compiler reads the value of the variable, it may not assume that it is the same as the last time it was read, or that it is the ... Read More

What would be effect of negative value of second argument, which specifies the number of decimal places, on the output of MySQL ROUND() function?

Priya Pallavi

Priya Pallavi

Updated on 10-Feb-2020 10:37:50

2K+ Views

If we specify the negative value of the second argument then the digits before the decimal point would be deleted and rounded off. The number of digits to be deleted depends upon the value of the negative second argument. Following examples will demonstrate the change, depending upon the negative value ... Read More

Java constructor return a value but, what?

Priya Pallavi

Priya Pallavi

Updated on 04-Feb-2020 10:54:52

1K+ Views

No. Java constructor cannot return a value. If required, just create a method which calls the required constructor and returns the required value. See the example below.public class Tester {    public Tester(){}    public static Tester getInstance(){       Tester tester = new Tester();        return tester;    } }

Add or subtract space between the words of a sentence with CSS

Priya Pallavi

Priya Pallavi

Updated on 31-Jan-2020 06:03:17

443 Views

The word-spacing property is used to add or subtract space between the words of a sentence. Possible values are normal or a number specifying space. ExampleYou can try to run the following code to implement word-spacing property.                             Asia is a continent.          

Shorthand property to set the font with CSS

Priya Pallavi

Priya Pallavi

Updated on 30-Jan-2020 10:17:39

256 Views

The font property is used as shorthand to specify the number of other font properties, such as font family, size, style, etc.ExampleYou can try to run the following code to learn how to work with font property:                            Applying all the properties on the text at once.          

How to get the first day of the current month in MySQL?

Priya Pallavi

Priya Pallavi

Updated on 28-Jan-2020 12:19:18

2K+ Views

With the help of following MySQL query, we can get the first day of the current month −mysql> SELECT DATE_SUB(LAST_DAY(NOW()), INTERVAL DAY(LAST_DAY(NOW()))- 1 DAY) AS 'FIRST DAY OF CURRENT MONTH'; +----------------------------+ | FIRST DAY OF CURRENT MONTH | +----------------------------+ | 2017-10-01                 | ... Read More

What is a segmentation fault in C/C++?

Priya Pallavi

Priya Pallavi

Updated on 27-Jan-2020 12:35:13

9K+ Views

A segmentation fault occurs when your program attempts to access an area of memory that it is not allowed to access. In other words, when your program tries to access memory that is beyond the limits that the operating system allocated for your program.Seg faults are mostly caused by pointers ... Read More

What is arguments object in JavaScript?

Priya Pallavi

Priya Pallavi

Updated on 08-Jan-2020 11:02:11

270 Views

Arguments object in JavaScript is an object, which represents the arguments to the function executing. Its syntax has two arguments:[function.]arguments[p]ExampleYou can try to run the following code to learn what are arguments object in JavaScriptLive Demo                    function functionArgument(val1, val2, val3) ... Read More

How to sort an ArrayList in Java in ascending order?

Priya Pallavi

Priya Pallavi

Updated on 30-Jul-2019 22:30:21

717 Views

You can sort an ArrayList using the sort() method of the Collections class this method accepts a list object as a parameter and sorts the contents of it in ascending order.Example:import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; public class ArrayListSample {    public static void main(String[] args) { ... Read More

C++11 Features Supported by Intel

Priya Pallavi

Priya Pallavi

Updated on 30-Jul-2019 22:30:21

203 Views

The C++11 features supported by Intel are available as an official guide in their docs. You can check these features out on https://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler.

Advertisements