Ankith Reddy has Published 1070 Articles

What does /* in MySQL means?

Ankith Reddy

Ankith Reddy

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

383 Views

This is a type of comment. The /* is the beginning of a comment and */ is the end of comment.Let us implement and display how to create a commentmysql> /* This is the first MySQL Program */MySQL will ignore the above comment.Let us see an example. Here, we have ... Read More

8085 Program to perform selection sort in descending order

Ankith Reddy

Ankith Reddy

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

385 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers in reverse order using selection sort.Problem Statement:Write 8085 Assembly language program to sort a given sequence using selection sort in descending order. The numbers are stored at ... Read More

Builtin functions of GCC compiler in C++

Ankith Reddy

Ankith Reddy

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

443 Views

In the GCC compiler there are some builtin functions. These functions are like below.Function _builtin_popcount(x)This builtin function is used to count the number of 1s in an integer type data. Let us see an example of _builtin_popcount() function.Example Live Demo#include using namespace std; int main() {    int n = 13; ... Read More

Printing Heart Pattern in C

Ankith Reddy

Ankith Reddy

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

8K+ Views

In this program we will see how to print heart shaped pattern in C. The heart shape pattern will be look like thisNow if we analyze this pattern, we can find different section in this pattern. The base of the heart is an inverted triangle; the upper portion has two ... Read More

MySQL SELECT to add a new column to a query and give it a value?

Ankith Reddy

Ankith Reddy

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

12K+ Views

To add column to MySQL query and give it a value, use the below syntax −select yourColumnName1, yourColumnName2, .....N ,yourValue AS anyAliasName from yourTableName;Let us first create a table −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    FirstName varchar(20) ); Query OK, 0 rows ... Read More

When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?

Ankith Reddy

Ankith Reddy

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

288 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 coercion and can also be called explicitly. You should ... Read More

Get MySQL maximum value from 3 different columns?

Ankith Reddy

Ankith Reddy

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

6K+ Views

To get the maximum value from three different columns, use the GREATEST() function.The syntax is as followsSELECT GREATEST(yourColumnName1, yourColumnName2, yourColumnName3) AS anyAliasName FROM yourTableName;To understand the above syntax, let us create a table. The query to create a table is as followsmysql> create table MaxOfThreeColumnsDemo    -> (    -> ... Read More

Generation of .OBJ file using a cross-assembler

Ankith Reddy

Ankith Reddy

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

228 Views

Generation of .OBJ file by using a cross-assembler:The file assembly language program file, e.g. MULT.ASM which is created by using an editor is simply a text file. We cannot execute this file directly. At first we have to assemble the file, and then we have to link it. The step ... Read More

Status check data transfer in 8085

Ankith Reddy

Ankith Reddy

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

351 Views

Status check data transfer process is a much more complex process than simple data transfer. We use this method is used when there is lack of accurate knowledge of the Input Output device consisting of the timing characteristics. Status information is received by the processor regarding the readiness of the ... Read More

Data file mode in 8085 Microprocessor

Ankith Reddy

Ankith Reddy

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

366 Views

DATA FILE MODE in8085 MicroprocessorWe can refer to ‘X8085 cross-assembler’ manual for details.The format of Intel Hex: We have shown the MULT.HEX file to give a brief description at a glance.:01 C100 00 04 3A:01 C200 00 05 38:02 C300 00 00 00 3B:10 C000 00 21 00 C1 5E ... Read More

Advertisements