Ankith Reddy has Published 996 Articles

HTML
Tag

Ankith Reddy

Ankith Reddy

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

943 Views

The tag defines the heading of an HTML document. It is used to group the - headings.Note − The tag introduced and deprecated in HTML5. It is dropped from W3C HTML5 specification.Following is the syntax − Let us now see an example to ... Read More

C++ Program to Find the Number of Permutations of a Given String

Ankith Reddy

Ankith Reddy

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

2K+ Views

We can arrange the characters of a string in different order. Here we will see how we can count the number of permutations can be formed from a given string.We know that if one string is ‘abc’. It has three characters; we can arrange them into 3! = 6 different ... Read More

HTML autocomplete Attribute

Ankith Reddy

Ankith Reddy

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

282 Views

The autocomplete attribute of the element allows you to set whether the autocomplete for the input should be on or off. The web browser automatically fills the values if autocomplete is on. This only happens if the user already entered values before.Following is the syntax −Above,  on | off values ... Read More

C++ Program to Find the Number of Ways to Write a Number as the Sum of Numbers Smaller than Itself

Ankith Reddy

Ankith Reddy

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

247 Views

In this program we will count the number of ways one number can be represented by sum of numbers smaller than itself. This program will count the partition of given numbers. We take a number n as input, then starting from a number break it by removing 1 at a ... Read More

How do I avoid the variable value in a MySQL stored procedure to change when records are updated?

Ankith Reddy

Ankith Reddy

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

186 Views

We will create a stored procedure that does not change the variable value whenever the value is updated.Let us first create a table −mysql> create table DemoTable    (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    Value int    ); Query OK, 0 rows affected (0.63 sec)Insert some ... Read More

HTML DOM Abbreviation Object

Ankith Reddy

Ankith Reddy

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

325 Views

The element is used in HTML to display abbreviations. The Abbreviation object represent this element.In the below example, we will learn how to access an abbreviation object −Example Live Demo Demo Heading BCCI Display the abbreviation title Abbreviation Title    function display() {       var ... Read More

What is the precision of floating point in C++?

Ankith Reddy

Ankith Reddy

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

954 Views

In C++, the size of the floating point number is either 4-byte or 8-bytes. So it can store up to few decimal places. For example, the 1/3 = 0.333333…… Up to infinity. If we store it inside floating type variable, then it will store some significant digits. The default value ... Read More

How to create a Vertical menu bar in Java?

Ankith Reddy

Ankith Reddy

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

1K+ Views

Let us create a MenuBar −JMenuBar menuBar = new JMenuBar();Now, set its layout to create a Vertical Menu Bar with GridLayout −menuBar.setLayout(new GridLayout(0, 1));The following is an example to create a Vertical menu bar in Java −Examplepackage my; import java.awt.GridLayout; import java.awt.event.KeyEvent; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; ... Read More

How to get day name from timestamp in MySQL?

Ankith Reddy

Ankith Reddy

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

310 Views

To get the day name from timestamp, use dayname() function −select dayname(yourColumnName) from yourTableName;    Let us first create a table :    mysql> create table DemoTable    (    LoginDate timestamp    ); Query OK, 0 rows affected (0.52 sec)Insert some records in the table using insert command −mysql> ... Read More

HTML DOM Anchor password Property

Ankith Reddy

Ankith Reddy

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

128 Views

The HTML DOM Anchor password property set or return the password part of the href attribute value. The password part is entered by the user. If you want to display it, then it can be seen after the username and before the hostname i.e. https −//username −password@www.demo.com.Following is the syntax ... Read More

Advertisements