George John has Published 1167 Articles

FILTER_SANITIZE_NUMBER_INT constant in PHP

George John

George John

Updated on 27-Jun-2020 08:46:14

493 Views

The FILTER_SANITIZE_NUMBER_INT constant deletes all illegal characters from a number.ReturnThe FILTER_SANITIZE_NUMBER_INT constant does not return anything.Example Live DemoOutputThe following is the output.string(5) "4-5+9"

32-bit microprocessors

George John

George John

Updated on 27-Jun-2020 08:46:11

4K+ Views

In computer architecture, 32-bit integers, memory addresses, or other data units are those that are 32 bits (4 octets or 4 Bytes) wide. Also, 32-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. 32-bit microcomputers are computers in which ... Read More

Input Devices in Computer

George John

George John

Updated on 27-Jun-2020 08:40:32

2K+ Views

The input devices are used for supplying program and data to the memory. In other words, the computer system reads the program and the data from the input devices. Most common input devices are the keyboard and mouse.Following are some of the important input devices which are used in a ... Read More

FILTER_SANITIZE_MAGIC_QUOTES constant in PHP

George John

George John

Updated on 27-Jun-2020 08:34:08

235 Views

The FILTER_SANITIZE_MAGIC_QUOTES constant performs the addslashes() function to a string. It adds backslashes in front of predefined characters i.e. single quote ('), double quote ("), backslash (\), NULL.ReturnThe FILTER_SANITIZE_MAGIC_QUOTES constant does not return anything.Example Live Demo

Control unit and CPU

George John

George John

Updated on 27-Jun-2020 08:10:32

3K+ Views

During the execution of a program, the control unit fetches one instruction at a time from the main memory and then executes it. In this execution process, it takes help of ALU, if the instruction execution involves arithmetic or logical operation (like AND, OR, Ex-OR). After execution of the current ... Read More

How to set ImageView in edittext while entering text?

George John

George John

Updated on 27-Jun-2020 06:59:33

412 Views

This example demonstrate about How to set ImageView in edittext while entering text.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.     In ... Read More

How to draw star shape in android?

George John

George John

Updated on 27-Jun-2020 06:55:40

935 Views

This example demonstrate about How to draw star shape 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.     In the above ... Read More

How to create circler edit text in android?

George John

George John

Updated on 27-Jun-2020 06:45:32

89 Views

This example demonstrate about How to create circler edit text 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.     In the ... Read More

Shell Sort program in C#

George John

George John

Updated on 27-Jun-2020 06:24:13

686 Views

Shell Sort allows the exchange of items that are far apart in the array and then reduces the gap between them. This is a sort of generalization of Insertion Sort. Shell Sort is known as such as it was published by Donald Shell at first.A program that demonstrates shell sort ... Read More

Instructions to perform addition in 8085 Microprocessor

George John

George John

Updated on 27-Jun-2020 05:59:07

843 Views

In 8085 Instruction set, and specially in its arithmetic group of instructions, we have only add and subtract instructions. 8085 does not have instructions to perform multiplication or division numbers. Now let us discuss the instructions to perform addition operations only.To perform addition of two numbers, 8085 imposes the restriction ... Read More

Advertisements