Ankith Reddy has Published 1086 Articles

How to find edit text values start from Alphabet or Not?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 14:45:20

302 Views

This example demonstrate about How to find edit text values start from Alphabet or Not.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 access elements of an array using pointer notation in C#?

Ankith Reddy

Ankith Reddy

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

542 Views

Usage of pointers in C# require the unsafe modifier. Also array elements can be accessed using pointers using the fixed keyword. This is because the array and the pointer data type are not the same. For example: The data type int[] is not the same as int*.A program that demonstrates ... Read More

How to get signal strength in android?

Ankith Reddy

Ankith Reddy

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

3K+ Views

This example demonstrate about How to get signal strength 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 get information about mobile supports in whole world or not in android?

Ankith Reddy

Ankith Reddy

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

44 Views

This example demonstrate about How to get information about mobile supports in whole world 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 ... Read More

How to get device id in android?

Ankith Reddy

Ankith Reddy

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

1K+ Views

This example demonstrate about How to get device 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 the above ... Read More

Heap Sort in C#

Ankith Reddy

Ankith Reddy

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

2K+ Views

Heap Sort is a sorting algorithm that makes use of the heap data structure. Each time the root element of the heap i.e. the largest element is removed and stored in an array. It is replaced by the rightmost leaf element and then the heap is reestablished. This is done ... Read More

Why array index starts from zero in C/C++ ?

Ankith Reddy

Ankith Reddy

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

6K+ Views

An array arr[i] is interpreted as *(arr+i). Here, arr denotes the address of the first array element or the 0 index element. So *(arr+i) means the element at i distance from the first element of the array. So array index starts from 0 as initially i is 0 which means ... Read More

How to get default phone number in android?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 14:14:11

501 Views

This example demonstrate about How to get default phone number 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

How to return local array from a C++ function?

Ankith Reddy

Ankith Reddy

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

621 Views

A local array cannot be directly returned from a C++ function as it may not exist in memory after the function call. A way to resolve this is to use a static array in the function. As the lifetime of the static array is the whole program, it can easily ... Read More

Accessing array out of bounds in C/C++

Ankith Reddy

Ankith Reddy

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

1K+ Views

In a language such as Java, an exception such as java.lang.ArrayIndexOutOfBoundsException may occur if an array is accessed out of bounds. But there is no such functionality in C and undefined behaviour may occur if an array is accessed out of bounds.A program that demonstrates this in C is given ... Read More

Advertisements