Arjun Thakur has Published 1025 Articles

Animate border-left property with CSS

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 11:34:29

442 Views

To implement animation on border-left property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 500px;             height: 300px;           ... Read More

MySQL always returning the bit values as blank? How to get the original values?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 11:17:50

359 Views

To get the original value, use the following syntax −Syntaxselect yourBitColumnName+0 from yourTableName;The above syntax cast the bit column to an integer. To understand the above concept, let us create a table and check how the returning value is blank. We will also see how to get the original value.The ... Read More

Get only the date in timestamp in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 11:00:02

2K+ Views

In order to get the date from the timestamp, you can use DATE() function from MySQL.The syntax is as follows −SyntaxSELECT DATE(yourTimestampColumnName) as anyVariableName from yourTableName;To understand the above syntax, let us first create a table. The query to create a table is as follows −mysql> create table DateFromTimestamp -> ... Read More

log1p() in C++

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 10:11:47

123 Views

The function log1p() is used to calculate the natural logarithm (base e logarithm) of (a+1) where a is any number. It returns the value of natural logarithm of (a+1). It returns Not a number(Nan) when we pass a value which is less than -1.Here is the mathematical expression of log1p(), ... Read More

What is the difference between new/delete and malloc/ free in C/ C++?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 10:07:58

2K+ Views

new/ deleteThe new operator requests for the memory allocation in heap. If the sufficient memory is available, it initializes the memory to the pointer variable and returns its address.The delete operator is used to deallocate the memory. User has the privilege to deallocate the created pointer variable by this delete ... Read More

How to get the dimensions of a view in Android?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 09:55:03

6K+ Views

There are so many cases, we should create dynamic view rather than creating view in XML. In that scenario, we should need to get the dimensions of a view. So here is a simple solution to get the dimensions of a view in android.To get the height of any view ... Read More

Which property is used to tell the browser what to do if the box's content is larger than the box itself?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 09:52:58

184 Views

CSS provides a property called overflow which tells the browser what to do if the box's contents are larger than the box itself. This property can take one of the following values −ValueDescriptionvisibleAllows the content to overflow the borders of its containing element.hiddenThe content of the nested element is simply cut ... Read More

Do you think operator < is faster than <= in C/C++?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 09:45:25

1K+ Views

No, the operator < takes same time to execute as operator

isless() in C/C++

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 09:42:06

380 Views

The function isless() is used to check that first argument is less than the second one. It is declared in “math.h” header file in C language. It returns true if successful otherwise it returns false.Here is the syntax of isless() in C language, bool isless(value1 , value2);Here, value1 − This ... Read More

isspace() function in C++

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 09:31:06

4K+ Views

The isspace() function is a predefined function in ctype.h. It specifies whether the argument is a whitespace character or not. Some of the whitespace characters are space, horizontal tab, vertical tab etc.A program that implements isspace() function by counting the number of spaces in a string is given as follows ... Read More

Advertisements