Anvi Jain has Published 569 Articles

How are variables scoped in C

Anvi Jain

Anvi Jain

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

100 Views

Here we will see how the C variables are scoped. The variables are always statically scoped in C. Binding of a variable, can be determined by the program text. These are independent of runtime function call stack.Let us see one example to get the idea.Example# include int x = ... Read More

How does a C program executes?

Anvi Jain

Anvi Jain

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

6K+ Views

Here we will see how the C programs are executed in a system. This is basically the compilation process of a C program.The following diagram will show how a C Source Code can be executed.In the above diagram there are different steps −C Code − This is the code that ... Read More

Iterate through Ennead Tuple in Java

Anvi Jain

Anvi Jain

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

130 Views

To iterate through the Ennead Tuple, you can use them for a loop. That is it works in the same way like any other collection in Java. Let us first see what we need to work with JavaTuples. To work with Ennead class in JavaTuples, you need to import the ... Read More

What is the $unwind operator in MongoDB?

Anvi Jain

Anvi Jain

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

333 Views

The $unwind operator in MongoDB is the same for each array, it returns the mapping document. Here is the demo of $unwind operator in MongoDB.To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −> db.unwindOperatorDemo.insertOne({"StudentName":"Larry", ... Read More

“volatile” qualifier in C

Anvi Jain

Anvi Jain

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

4K+ Views

Here we will see what is the meaning of volatile qualifier in C++. The volatile qualifier is applied to a variable when we declare it. It is used to tell the compiler, that the value may change at any time. These are some properties of volatile.The volatile keyword cannot remove ... Read More

How to filter data using where Clause and “NOT IN” in Android sqlite?

Anvi Jain

Anvi Jain

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

225 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

How to convert string to numerical values in MongoDB?

Anvi Jain

Anvi Jain

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

635 Views

You need to use some code in order to convert a string to numerical values in MongoDB.Let us first create a collection with a document. The query to create a collection with a document is as follows:> db.convertStringToNumberDemo.insertOne({"EmployeeId":"101", "EmployeeName":"Larry"}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c7f56528d10a061296a3c31") } > ... Read More

How to know which storage engine is used in MongoDB?

Anvi Jain

Anvi Jain

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

302 Views

To know which storage engine is used in MongoDB, you can use storageEngine. The syntax is as follows −db.serverStatus().storageEngine;To know all the configuration details of storage engine, you can use the following syntax:db.serverStatus().yourStorageEngineName;Let us implement the above syntax to know which storage engine is being used in MongoDB. The query ... Read More

Storage of integer and character values in C

Anvi Jain

Anvi Jain

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

1K+ Views

We have used the integer and character variables many times in our program. Here we will see how they are stored in the memory.In C the character values are also stored as integers. In the following code, we shall put 270 into a character type data. So the binary equivalent ... Read More

How to find its first non-repeating character in a given string in android?

Anvi Jain

Anvi Jain

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

181 Views

This example demonstrate about How to find its first non-repeating character in a given string 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

Advertisements