Arjun Thakur has Published 1109 Articles

How to get information about mobile supports sms or not in android?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:35:53

121 Views

This example demonstrate about How to get information about mobile supports sms or not 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 to get device info in android?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:32:27

2K+ Views

This example demonstrate about How to get device info 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

Insertion Sort in C#

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:30:08

4K+ Views

Insertion Sort is a sorting algorithm that takes an element at a time and inserts it in its correct position in the array. This process is continued until the array is sorted.A program that demonstrates insertion sort in C# is given as follows.Example Live Demousing System; namespace InsertionSortDemo {    class ... Read More

Microprocessor 8085 Architecture

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:25:12

2K+ Views

Microprocessor 8085 Architecture which is shown in the below figure consists of various units and each unit has its respective functionality.Fig: 8085 Microprocessor ArchitectureThese units are listed below-AccumulatorIn Intel 8085microprocessor, accumulator acts an 8-bit register to store 8-bit data to perform arithmetic and logical operation on them. The final result ... Read More

How static variables in member functions work in C++?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:21:40

859 Views

The static variables in member functions are declared using the keyword static. The space for the static variables is allocated only one time and this is used for the entirety of the program. Also, there is only one copy of these static variables in the whole program.A program that demonstrates ... Read More

How to get default phone Subscriber Id in android?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:15:07

696 Views

This example demonstrate about How to get default phone Subscriber Id 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 ... Read More

Initializing array with variable vs a real number in C++

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:12:22

227 Views

An array is a collection of same type of elements at contiguous memory location. The lowest address in the array corresponds to the first element while highest address corresponds to the last element. The array index starts with zero(0) and ends with the size of array minus one(array size - ... Read More

C++ static member variables and their initialization

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 14:08:02

5K+ Views

Static C++ member variables are defined using the static keyword. The static member variables in a class are shared by all the class objects as there is only one copy of them in the memory, regardless of the number of objects of the class.The static class member variables are initialized ... Read More

Difference between pointer and array in C

Arjun Thakur

Arjun Thakur

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

585 Views

The details about a pointer and array that showcase their difference are given as follows.PointerA pointer is a variable that stores the address of another variable. When memory is allocated to a variable, pointer points to the memory address of the variable. Unary operator ( * ) is used to ... Read More

Calling class method through NULL class pointer in C++

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 13:51:40

361 Views

A class method can be can be called using a NULL class pointer.Note − This is undefined behaviour and there is not guarantee about the execution of the program. The actual results depend on the compiler used.A program that demonstrates this is given as follows.Example Live Demo#include using namespace std; ... Read More

Advertisements