Ankith Reddy has Published 1132 Articles

New Features of C++17

Ankith Reddy

Ankith Reddy

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

348 Views

C++17 is the latest version of standard C++ language. C++11 and C++14 are the previous versions of C++. The current version makes several additions to the core language while some previous features are also removed. C++17 is known as feature full or feature complete. There are some of the new ... Read More

How to find the number of columns in a MySQL table?

Ankith Reddy

Ankith Reddy

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

14K+ Views

To find the number of columns in a MySQL table, use the count(*) function with information_schema.columns and the WHERE clause. Let us see an example. Creating a table. mysql> create table NumberOfColumns -> ( -> id int, -> FirstName varchar(100), ... Read More

time_sleep_until() function in PHP

Ankith Reddy

Ankith Reddy

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

78 Views

The time_sleep_until() function delays execution of the current script until the specified time. Syntax time_sleep_until(time) Parameters time − The time until execution will delay. Return The time_sleep_until() function returns true on success. Example The execution of the above script is now delayed ... Read More

How to initialize an array in C#?

Ankith Reddy

Ankith Reddy

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

2K+ Views

All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. Firstly, declare an array. int[] rank; But declaring an array does not initialize the array in the memory. When the array variable is initialized, you ... Read More

hex2bin() function in PHP

Ankith Reddy

Ankith Reddy

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

36 Views

The hex2bin() function is used to convert a string of hexadecimal to ASCII character. Syntax hex2bn(str) Parameters str − The hexadecimal value to be converted Return The hex2bin() function returns the ASCII character of the converted string, or FALSE on failure. Example The following is an ... Read More

How many types of intent are in Android?

Ankith Reddy

Ankith Reddy

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

16K+ Views

Before getting into types of intent, we should know what is an intent?. Intent is to perform an action. It is mostly used to start activity, send broadcast receiver, start services and send message between two activities. There are two intents available in android as Implicit Intents and Explicit Intents.Explicit ... Read More

print() function in PHP

Ankith Reddy

Ankith Reddy

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

229 Views

The print() function in PHP outputs one or more string. Note − The print() function is slower than echo() Syntax print(arg) Parameters arg − The input data Return The print() function always return 1. Example The following is an example − Live Demo ... Read More

What are access specifiers in C#.NET?

Ankith Reddy

Ankith Reddy

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

521 Views

To define the scope and visibility of a class member, use an access specifier. C# supports the following access specifiers − Public Private Protected Internal Protected internal Let us learn about them one by one. Public Access Specifier It allows a class to expose its member variables and ... Read More

What are anchors in regular expressions in C#?

Ankith Reddy

Ankith Reddy

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

184 Views

Anchors are constructs in regular expressions in C#. It allows a match to succeed or fail depending on the current position in the string. The following table lists the anchors. Assertion Description Pattern Matches ^ The match must start at the beginning of the string ... Read More

How to convert timestamp to datetime in MySQL?

Ankith Reddy

Ankith Reddy

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

5K+ Views

We can convert the timestamp to date time with the help of FROM_UNIXTIME() function. Let us see an example. First, we will create a table with column of int type. Then we convert it to timestamp and again into date time. Creating a table with integer type. mysql> create ... Read More

Advertisements