Chandu yadav has Published 1091 Articles

When should you use a class vs a struct in C++?

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 13:36:53

438 Views

Structures and classes are very similar in C++ except for some differences. So details about these differences are given below that help to decide when to use a class or structure in C++.Differences between Class and StructureAll the members of a class are private by default. This is different compared ... Read More

Select into in MySQL?

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 13:12:11

1K+ Views

To do select into in MySQL, use CREATE TABLE SELECT command. The syntax is as follows −CREATE TABLE yourTableName SELECT *FROM yourOriginalTableName;To understand, let us first create a table −mysql> create table SelectIntoDemo -> ( -> Id int, -> Name varchar(200) -> ); Query OK, 0 rows affected (0.50 sec)Let ... Read More

Error-Detecting Codes - Cyclic Redundancy Checks (CRCs)

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 13:08:57

8K+ Views

Errors and Error DetectionWhen bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted bits leads to spurious data being received by the receiver and are called errors.Error detection techniques are responsible for checking whether any error has occurred ... Read More

How to insert current date/time in MySQL?

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 12:53:52

6K+ Views

To insert current date/ time in MySQL, use the now() function. Let us now see an example.At first, we will create a table. The CREATE command is used to create a table.mysql > create table CurrentDateTime -> ( -> CurrentTime datetime -> ); Query OK, 0 rows affected (1.14 sec)Syntax ... Read More

Is it possible to use UPDATE query with LIMIT in MySQL?

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 12:30:35

10K+ Views

Yes, it is possible to use UPDATE query with LIMIT in MySQL. Let us see how.For our example, we will first create a table. The CREATE command is used to create a table.mysql>CREATE table tblUpdateLimit -> ( -> id int, -> name varchar(100) -> ); Query OK, 0 rows affected ... Read More

How to escape single quotes in MySQL?

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 12:24:56

558 Views

We can escape single quotes with the help of the SELECT statement. For instance, when single quotes are encountered in a name, eg. “Carol’s”.Let us see the syntax.SELECT ‘SomeValue’;Here is an example that display how to include text with single quotes.mysql> SELECT 'Carol\'s Taylor.'; The following is the output.+-------------------+ | ... Read More

Register addressing mode in 8085 Microprocessor

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 11:10:40

1K+ Views

In this mode, the data is copied from one register to another. For example, MOV A, B: means data in register B is copied to register A.MOV E, HIt occupies only 1-Byte in memory. MOV E, H is an example instruction of this type. It is a 1-Byte instruction. Suppose E ... Read More

Intel 8259A Programmable Interrupt Controller

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 11:03:51

684 Views

8085 microprocessor, consists of five interrupt input pins named as RST 5.5, RST 6.5, RST7.5, INTR, and TRAP respectively. When there are a maximum of five I/O devices they want to perform driven interrupt data transfer, which is connected to the five interrupt input pins. Now considering the case where ... Read More

Slave register in 8259

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 10:57:36

900 Views

It is also an 8-bit register. The processor here writes to SLR but cannot read. The content of this register here implies a different meaning for Master8259 and Slave 8259. Through Master 8259 information is carried through the IR inputs to which Slave 8259s are connected. If the SLR of ... Read More

Programming the 8259 with slaves

Chandu yadav

Chandu yadav

Updated on 26-Jun-2020 10:56:37

3K+ Views

We have assumed that the processor that the processor used in this microcomputer system is 8085, and the slave which is connected to the input IR4 of Master 8259. The address of the port of 8259 is dependent on the chip and the circuit used. Using ICWs and OCWs the ... Read More

Advertisements