Vrundesha Joshi has Published 343 Articles

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

Vrundesha Joshi

Vrundesha Joshi

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

589 Views

As Array index starts with 0, so a[i] can be implemented as *(a + i).If Array index starts with 1 then a[i] will be implemented as *(a+i-1) which will be time consuming during compilation and the performance of the program will also be effected.So, it is better to start index ... Read More

html.parser — Simple HTML and XHTML parser in Python

Vrundesha Joshi

Vrundesha Joshi

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

2K+ Views

The HTMLParser class defined in this module provides functionality to parse HTML and XHMTL documents. This class contains handler methods that can identify tags, data, comments and other HTML elements.We have to define a new class that inherits HTMLParser class and submit HTML text using feed() method.from html.parser import HTMLParser ... Read More

How to enable app cache for webview in android?

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

This example demonstrate about How to enable app cache for webview 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

How to enable Web view session storage in android?

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

This example demonstrate about How to enable Web view session storage 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

Bit Fields in C

Vrundesha Joshi

Vrundesha Joshi

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

208 Views

In this section we will what is bit fields in C.Suppose your C program contains a number of TRUE/FALSE variables grouped in a structure called status, as follows –struct {    unsigned int widthValidated;    unsigned int heightValidated; } status;This structure requires 8 bits of memory space but in actual, ... Read More

C/C++ Macro for string concatenation

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

In this program we will see how the macros are used to concatenate two strings. We can create two or more than two strings in macro, then simply write them one after another to convert them into a concatenated string. The syntax is like below:#define STR1 "str1" #define STR2 " ... Read More

ipaddress - IPv4/IPv6 manipulation library in Python

Vrundesha Joshi

Vrundesha Joshi

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

561 Views

Internet Protocol is currently in the process of moving from version 4 to version 6. This is necessitated because version 4 doesn’t provide enough addresses to handle the increasing number of devices with direct connections to the internet.An IPv4 address is composed of 32 bits, represented into four eight bit ... Read More

How to drop a table from a database using JDBC API?

Vrundesha Joshi

Vrundesha Joshi

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

781 Views

A. The SQL DROP TABLE statement is used to remove a table definition and all the data, indexes, triggers, constraints and permission specifications for that table.SyntaxDROP TABLE table_name;To drop an table from a database using JDBC API you need to:Register the driver: Register the driver class using the registerDriver() method of ... Read More

Print “Hello World” without using any header file in C

Vrundesha Joshi

Vrundesha Joshi

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

902 Views

Generally, we use header files in C/C++ languages to access the built-in functions like int, char, string functions. The function printf() is also a built-in function which is declared in “stdio.h” header file and it is used to print any kind of data on console.Here is an example to print ... Read More

How to implementing start Foreground for a service?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroyThis example demonstrate about How to implementing start Foreground for a service.Step 1 − Create a new project in Android ... Read More

Advertisements