Nitya Raut has Published 272 Articles

Switch case statement in C

Nitya Raut

Nitya Raut

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

1K+ Views

A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.The syntax for a switch statement in C programming language is as follows −switch(expression) {    case ... Read More

urllib.parse — Parse URLs into components in Python

Nitya Raut

Nitya Raut

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

6K+ Views

This module provides a standard interface to break Uniform Resource Locator (URL) strings in components or to combine the components back into a URL string. It also has functions to convert a "relative URL" to an absolute URL given a "base URL."This module supports the following URL schemes -fileftpgopherhdlhttphttpsimapmailtommsnewsnntpprosperorsyncrtsprtspusftpshttpsipsipssnewssvnsvn+sshtelnetwaiswswssurlparse()This function ... Read More

4 Dimensional Array in C/C++

Nitya Raut

Nitya Raut

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

684 Views

A 4 dimensional array is an array of 3Darrays.AlgorithmBegin. Declare the variables. Declare the array elements. Take the no of elements as input. Take the elements as input. Print the elements stored in array. End.Here ... Read More

urllib.robotparser - Parser for robots.txt in Python

Nitya Raut

Nitya Raut

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

511 Views

Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol. This file is a simple text-based access control system for computer programs that automatically access web resources. Such programs are called spiders, crawlers, etc. The file specifies ... Read More

How to find device airplane mode is changed in android?

Nitya Raut

Nitya Raut

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

583 Views

This example demonstrate about How to find device airplane mode is changed 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

Implement your own itoa() in C

Nitya Raut

Nitya Raut

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

1K+ Views

In this section we will see how to convert an integer number to a string.The logic is very simple. Here we will use the sprintf() function. This function is used to print some value or line into a string, but not in the console. This is the only difference between ... Read More

C++ Program to Implement Wagner and Fisher Algorithm for online String Matching

Nitya Raut

Nitya Raut

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

309 Views

In this section we will see how to compare two strings using Wagner and Fisher algorithm. Using this algorithm, we can find how many minimum changes are required to match those strings.This is a dynamic programming approach. Here we measure the Levenshtein distance from two strings.Input: Two strings “Support” & ... Read More

Multithreading in C

Nitya Raut

Nitya Raut

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

20K+ Views

Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based.Process-based multitasking handles the concurrent execution of programs. Thread-based multitasking deals with the concurrent execution of ... Read More

Sum of array using pointer arithmetic in C

Nitya Raut

Nitya Raut

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

841 Views

In this program, we need to find sum of array elements using pointer arithmetic.Here we use * which denotes the value stored at the memory address and this address will remain stored in the variable. Thus “int *ptr” means, ptr is a variable which contains an address and content of ... Read More

How to use SELECT Query in Android sqlite?

Nitya Raut

Nitya Raut

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

3K+ Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an opensource 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 access ... Read More

Advertisements