Nancy Den has Published 290 Articles

Why is sizeof() implemented as an operator in C++?

Nancy Den

Nancy Den

Updated on 11-Feb-2020 05:56:32

179 Views

sizeof is not a real operator in C++. It is merely special syntax that inserts a continuing equal to the size of the argument. sizeof doesn’t want or have any runtime support. Sizeof cannot be overloaded because built-in operations, such as incrementing a pointer into an array implicitly depends on ... Read More

Unary operator in C++

Nancy Den

Nancy Den

Updated on 10-Feb-2020 13:15:43

2K+ Views

Unary operator is operators that act upon a single operand to produce a new value. The unary operators are as follows:OperatorsDescriptionIndirection operator (*)It operates on a pointer variable and returns an l-value equivalent to the value at the pointer address. This is called "dereferencing" the pointer.Address-of operator (&)The unary address-of ... Read More

How can I check the status of MySQL Server?

Nancy Den

Nancy Den

Updated on 10-Feb-2020 06:48:48

1K+ Views

With the help of ‘mysqladmin’ along with ‘status’ option program we would be able to check the status of MySQL server. It can be used as follows on command line −C:\mysql\bin>mysqladmin -u root status Uptime: 3865 Threads: 1 Questions: 50 Slow queries: 0 Opens: 113 Flush tables: 1 Open tables: ... Read More

How can we store any other value than N in CSV file if we export the data to CSV file from a table which contains a NULL value(s)?

Nancy Den

Nancy Den

Updated on 07-Feb-2020 05:36:23

232 Views

If we want to store any other value than \N in CSV file on exporting the data to CSV file from a table which contains NULL value(s) then we need to replace \N values with other value by using IFNULL statement. To illustrate it we are taking the following example ... Read More

HTML5 SVG css3 transition on fill not working when there is external link

Nancy Den

Nancy Den

Updated on 30-Jan-2020 06:13:20

134 Views

This cannot be done through the visited state. The best solution is to add a random query to url so that page go unvisited.

Input type URL in HTML5

Nancy Den

Nancy Den

Updated on 29-Jan-2020 08:38:28

312 Views

This accepts only URL value in HTML5. This type is used for input fields that should contain a URL address. If you try to submit a simple text, it forces to enter only URL address either in https://www.qries.com format or in http://qries.com format.             ... Read More

JavaScript File Drop with HTML5

Nancy Den

Nancy Den

Updated on 29-Jan-2020 08:12:03

277 Views

Drag and Drop (DnD) is powerful User Interface concept that makes it easy to copy, reorder and deletion of items with the help of mouse clicks. This allows the user to click and hold the mouse button down over an element, drag it to another location, and release the mouse ... Read More

How to send a cross-document message with HTML?

Nancy Den

Nancy Den

Updated on 29-Jan-2020 07:26:04

202 Views

Create a new web browsing context either by creating new iframe or new window. We can send the data using with postMessage() and it has two arguments. They are asmessage − The message to sendtargetOrigin − Origin nameLet us see an example to send a message from iframe to button:var iframe = ... Read More

In MySQL, how can we display time in other format specified by the user?

Nancy Den

Nancy Den

Updated on 29-Jan-2020 05:57:48

88 Views

We can also use DATE_FORMAT() function to display the time in other formats. In this case, there would be two arguments of this function, first would be the time and second would be the format string.The following example will change the current time in specified format −mysql> SELECT DATE_FORMAT(NOW(), 'The ... Read More

Override HTML5 validation

Nancy Den

Nancy Den

Updated on 28-Jan-2020 10:05:05

1K+ Views

To ignore HTML validation, you can remove the attribute on button click using JavaScript.Uer removeAttribute() to remove an attribute from each of the matched elements.                    First Name:                                function display(id) {             document.getElementById(id).value = document.getElementById(id).removeAttribute('required');          }          

Advertisements