V Jyothi has Published 77 Articles

What is the difference between ++i and i++ in C++?

V Jyothi

V Jyothi

Updated on 02-Dec-2024 00:26:59

34K+ Views

There is a big distinction between the suffix and prefix versions of ++. In this article, we will see the differences between them and will go through it's examples. Prefix version (++i) In the prefix version (i.e., ++i), the value of i first increments, and then the value of the ... Read More

How to Split String in Java using Regular Expression?

V Jyothi

V Jyothi

Updated on 21-Aug-2024 00:03:07

6K+ Views

In this article, we will learn to split a string in Java using regular expressions. We will be using the split(String regex) method of the String class to split this string around matches of the given regular expression. This method works in the same way as invoking the method i.e. ... Read More

How to specify that the audio/video will start over again, every time it is finished in HTML?

V Jyothi

V Jyothi

Updated on 24-Jun-2020 11:42:44

342 Views

Use the loop attribute to specify that the audio/ video will start over again. You can try to run the following code to implement loop attribute −Example                                        Your browser does not support the video element.          

What is a lambda expression in C++11?

V Jyothi

V Jyothi

Updated on 24-Jun-2020 06:06:07

441 Views

C++ STL includes useful generic functions like std::for_each. Unfortunately, they can also be quite cumbersome to use, particularly if the functor you would like to apply is unique to the particular function. So this function that you'll create will be in that namespace just being used at that one place. ... Read More

When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used in C++?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 13:57:11

4K+ Views

const_castcan be used to remove or add const to a variable. This can be useful if it is necessary to add/remove constness from a variable.static_castThis is used for the normal/ordinary type conversion. This is also the cast responsible for implicit type coersion and can also be called explicitly. You should ... Read More

How to allow long and unbreakable words to be broken and wrap to the next line in JavaScript?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 11:44:49

367 Views

Use the wordWrap property in JavaScript to allow long words to be broken and wrap to the next line.ExampleYou can try to run the following to learn how to work with wordWrap property −                    #box {           ... Read More

Which event occurs in JavaScript when an element's content is cut?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 09:11:38

136 Views

The oncut event occurs when an element’s content is cut. You can try to run the following code to learn how to work with an oncut event in JavaScript −Example                          function cutFunction() {             document.write("Text cut!");          }          

How to add properties and methods to an object in JavaScript?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 08:32:13

253 Views

To add properties and methods to an object in JavaScript, use the prototype property.ExampleYou can try to run the following code to learn how to work with prototype −           JavaScript prototype property                function book(title, author) {   ... Read More

What is the role of special characters in JavaScript Regular Expressions?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 07:21:43

275 Views

The frequency or position of bracketed character sequences and single characters can be denoted by a special character. Each special character has a specific connotation. The +, *, ?, and $ flags all follow a character sequence.Sr.NoExpression & Description1p+It matches any string containing one or more p's.2p*It matches any string ... Read More

How to define custom JavaScript exceptions?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 06:33:30

170 Views

To learn how to define and implement custom JavaScript exceptions, you can try to run the following code −Example                                         Click the following to see the result:                          

1 2 3 4 5 ... 8 Next
Advertisements