Chandu yadav has Published 1226 Articles

How to Convert Octal to Binary?

Chandu yadav

Chandu yadav

Updated on 22-Oct-2023 13:02:17

25K+ Views

Octal number is one of the number systems which has value of base is 8, that means there only 8 symbols − 0, 1, 2, 3, 4, 5, 6, and 7. Whereas Binary number is most familiar number system to the digital systems, networking, and computer professionals. It is base ... Read More

What does it mean by select 1 from MySQL table?

Chandu yadav

Chandu yadav

Updated on 22-Oct-2023 02:07:45

23K+ Views

The statement select 1 from any table name means that it returns only 1. For example, If any table has 4 records then it will return 1 four times. Let us see an example. Firstly, we will create a table using the CREATE command. mysql> create table StudentTable ... Read More

Internal Data Memory Organization of Intel 8051

Chandu yadav

Chandu yadav

Updated on 14-Sep-2023 15:41:37

25K+ Views

The internal data memory of 8051 is divided into two groups. These are a set of eight registers and a scratch pad memory. These eight registers are R0 toR7. The address range 00H to 07H is used to access the registers, and the rest are scratch pad memory. 8051 Provides four ... Read More

MySQL error 1452 - Cannot add or update a child row: a foreign key constraint fails?

Chandu yadav

Chandu yadav

Updated on 14-Sep-2023 13:45:42

28K+ Views

This error comes whenever we add a foreign key constraint between tables and insert records into the child table. Let us see an example. Creating the child table. mysql> create table ChildDemo -> ( -> id int, -> FKPK int ... Read More

How to Convert Binary to Decimal?

Chandu yadav

Chandu yadav

Updated on 14-Sep-2023 13:12:25

23K+ Views

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other ... Read More

How do I convert a double into a string in C++?

Chandu yadav

Chandu yadav

Updated on 14-Sep-2023 02:20:31

27K+ Views

A double can be converted into a string in C++ using std::to_string. The parameter required is a double value and a string object is returned that contains the double value as a sequence of characters.A program that demonstrates this in C++ is given as follows.Example Live Demo#include #include using ... Read More

Elementary Data Link Protocols

Chandu yadav

Chandu yadav

Updated on 13-Sep-2023 15:56:09

36K+ Views

Protocols in the data link layer are designed so that this layer can perform its basic functions: framing, error control and flow control. Framing is the process of dividing bit - streams from physical layer into data frames whose size ranges from a few hundred to a few thousand bytes. ... Read More

How to select last 10 rows from MySQL?

Chandu yadav

Chandu yadav

Updated on 12-Sep-2023 01:58:16

30K+ Views

To select last 10 rows from MySQL, we can use a subquery with SELECT statement and Limit concept. The following is an example. Creating a table. mysql> create table Last10RecordsDemo -> ( -> id int, -> name varchar(100) ... Read More

How to print out the contents of a vector in C++?

Chandu yadav

Chandu yadav

Updated on 12-Sep-2023 01:26:36

30K+ Views

Vectors are similar to the dynamic arrays but vectors can resize. Vectors are sequence containers that can change their size according to the insertion or deletion of elements. Containers are the objects which holds the data of same type.Vectors may allocate some extra storage for the future growth of elements ... Read More

How to select first 10 elements from a MySQL database?

Chandu yadav

Chandu yadav

Updated on 06-Sep-2023 11:53:08

41K+ Views

To select first 10 elements from a database using SQL ORDER BY clause with LIMIT 10.The syntax is as followsSELECT *FROM yourTableName ORDER BY yourIdColumnName LIMIT 10;To understand the above syntax, let us create a table. The query to create a table is as followsmysql> create table Clients    - ... Read More

Advertisements