Arjun Thakur has Published 1109 Articles

Create a bordered list without bullets using CSS

Arjun Thakur

Arjun Thakur

Updated on 22-Jun-2020 07:21:10

222 Views

To create a bordered list without bullets, you can try to run the following code. The list-style-type is set to none to remove bullets to a listExampleLive Demo                    ul {             background-color: orange;             padding: 10px 20px;             list-style-type: none;             border: 2px solid black;          }                     Countries                India          US          Australia           Output

When MySQL IN() function returns NULL?

Arjun Thakur

Arjun Thakur

Updated on 22-Jun-2020 06:36:43

259 Views

Following are the two cases when MySQL IN() function returns NULL as result −Case-1 − When expression on  left side is NULL IN() function will return NULL if the expression on the left side is NULL. Following example will demonstrate it −mysql> Select NULL IN (1, 2, 3, 4, 10); +----------------------+ ... Read More

What is the use of IGNORE_SPACE SQL mode?

Arjun Thakur

Arjun Thakur

Updated on 22-Jun-2020 05:48:58

465 Views

The IGNORE_SPACE SQL mode can be used to modify how the parser treats function names that are whitespace-sensitive. Following are the cases in which we can use IGNORE_SPACE SQL mode −Case-1  − When IGNORE_SPACE SQL mode is disabledAfter disabling the IGNORE_SPACE SQL mode, the parser interprets the name as a ... Read More

Role of margin property with value auto using CSS

Arjun Thakur

Arjun Thakur

Updated on 22-Jun-2020 05:31:06

137 Views

The margin property with value auto is used to horizontally center the element within its container. You can try to run the following code to implement margin: auto;ExampleLive Demo                    div {             width: 200px; ... Read More

How can I customize the output of MySQL SUM() function to 0 instead of NULL when there are no matching rows?

Arjun Thakur

Arjun Thakur

Updated on 22-Jun-2020 05:20:30

168 Views

As we know that the SUM() function returns NULL if there is no matching row but sometimes we want it to return zero instead of NULL. For this purpose, we can use the MySQL COALESCE() function which accepts two arguments and returns the second argument if the first argument is ... Read More

What are rvalue and lvalue in C#?

Arjun Thakur

Arjun Thakur

Updated on 21-Jun-2020 16:52:48

705 Views

The following are the types of expressions in C# −lvalue − An expression that is an lvalue may appear as either the left-hand or right-hand side of an assignment.rvalue − An expression that is an rvalue may appear on the right- but not left-hand side of an assignment.Variables are lvalues ... Read More

return keyword in C#

Arjun Thakur

Arjun Thakur

Updated on 21-Jun-2020 16:32:10

3K+ Views

The return statement is used to return value. When a program calls a function, the program control is transferred to the called function.The following is an example to learn about the usage of return statement in C#. Here, we are finding the average and returning the result using the return ... Read More

try keyword in C#

Arjun Thakur

Arjun Thakur

Updated on 21-Jun-2020 16:21:17

186 Views

A try block identifies a block of code for which particular exceptions is activated. It is followed by one or more catch blocks.try { }With that, you need to set catch statement as well to catch the exception −try {       // statements causing exception    } catch( ... Read More

Numbers in C#

Arjun Thakur

Arjun Thakur

Updated on 21-Jun-2020 16:08:01

127 Views

For numbers in C#, use the int type. It represents an integer, which is positive or negative whole number.Let us see how to add two integers in C# using mathematical operator + −using System; using System.Linq; class Program {    static void Main() {       int x ... Read More

Optimization Tips for C# Code

Arjun Thakur

Arjun Thakur

Updated on 21-Jun-2020 15:57:01

721 Views

The following are the tips −Prefer ListUse List whenever necessary. Working with ArrayList for the same work can make the working of code slower. This is specially if you are storing multiple types of objects within the same list.Use multiplication-shift operationPrefer multiplication-shift operation instead of division operator, since the usage ... Read More

Advertisements