Chandu yadav has Published 1163 Articles

C++ Program to Perform Postorder Non-Recursive Traversal of a Given Binary Tree

Chandu yadav

Chandu yadav

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

438 Views

If a binary tree is traversed post-order, the left subtree is visited first, then the right sub-tree and later the root. This is a C++ Program for Post Order Tree traversal without recursion. We do the program here by using stack.AlgorithmFor postorder traversal:Begin    Declare postorder_traversal(struct node*t, struct tree**top)   ... Read More

Can we know the last MySQL error?

Chandu yadav

Chandu yadav

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

207 Views

In order to know the last MySQL error, you can use SHOW command −SHOW ERRORS;Or you can use another syntax −SHOW WARNINGS;Here, we are creating a table that displays an error and then we will find out how to know the last MySQL error. Here, the error occurs because we ... Read More

27128-20 Compatibility check with 8085AH in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

197 Views

Let’s perform the memory compatibility check with respect to tAD, tLDR, and tRD parameters.Compatibility with respect to tAD: The time interval between valid address on the addresses ranging from A15 to A0 and valid data on the addresses ranges from AD7 to AD0. For 8085AH the T state working is 320 nS, but ... Read More

How do I remove ON UPDATE CURRENT_TIMESTAMP from an existing column in MySQL?

Chandu yadav

Chandu yadav

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

4K+ Views

The ON UPDATE CURRENT_TIMESTAMP defines that an update without an explicit timestamp would result in an update to the current timestamp value.You can remove ON UPDATE CURRENT_TIMESTAMP from a column using ALTER command.The syntax is as followsALTER TABLE yourTableName CHANGE yourTimeStampColumnName yourTimeStampColumnName timestamp NOT NULL default CURRENT_TIMESTAMP;To understand the above ... Read More

How to make custom dialog with rounded corners in android?

Chandu yadav

Chandu yadav

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

5K+ Views

This example demonstrate about How to make custom dialog with rounded corners in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How do I update the decimal column to allow more digits in MySQL?

Chandu yadav

Chandu yadav

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

1K+ Views

To update the decimal column to allow more digit, use the MODIFY COLUMN. The syntax is as follows:ALTER TABLE MODIFY COLUMN yourColumnName DECIMAL(yourIntValue, yourIntValue);To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table allowDecimalWithMoreDigit    -> (     ... Read More

DoubleStream sorted() method in Java

Chandu yadav

Chandu yadav

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

48 Views

The sorted() method of the DoubleStream class returns a stream consisting of the elements of this stream in sorted order.The syntax is as followsDoubleStream sorted()To use the DoubleStream class in Java, import the following packageimport java.util.stream.DoubleStream;Create a DoubleStream and add some elements to the streamDoubleStream doubleStream = DoubleStream.of(78.9, 90.4, 27.9, ... Read More

How to get first N characters from a MySQL column?

Chandu yadav

Chandu yadav

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

784 Views

Use SUBSTRING() to get first N characters from a MySQL column. Let us first create a table −mysql>create table DemoTable (    Information text ); Query OK, 0 rows affected (2.63 sec)Insert records in the table using insert command −mysql>insert into DemoTable values('MySQL is a structured query language'); Query OK, ... Read More

Description of logic controller interface

Chandu yadav

Chandu yadav

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

267 Views

We use a logic controller and it is used in industry for the process of control done by the software. Multiple inputs are typically accepted which performs a total complete sequence of operations carried out both arithmetic and logically. The outputs generated are used for the maintenance of the process ... Read More

DoubleStream.Builder add() method in Java

Chandu yadav

Chandu yadav

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

69 Views

The add() method of the DoubleStream.Builder class in Java adds an element to the stream being built. The method returns this builder.The syntax is as followsdefault DoubleStream.Builder add(double ele)Here, ele is the element to be added to this stream.To use the DoubleStream.Builder class in Java, import the following packageimport java.util.stream.DoubleStream; ... Read More

Advertisements