Difference between remove and empty methods in javascript

Most of the times, these methods are confused with each other or are thought of as performing the same functionality. But,remove() removes the selected element and all its child elements whereas empty() removes only the child elements from the selected element. Moreover, we can also filter the element to be removed in a specific class by... Continue Reading →

jQuery slideToggle() Method

The slideToggle() method toggles between the  slideUp() and slideDown() methods. If an element is slid up, slideToggle() will slide it down and vice versa. Syntax $(selector).slideToggle(speed,callback); Example $("div").slideToggle();

jQuery function to hide and show HTML elements

We can show and hide HTML elements with the show()and hide  methods in jquery. A simple example is as follows Example $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); Similarly, you can apply it to any html element such as a button.


A hashing algorithm is a mathematical function that shortens the data to a fixed size. example Input “The Quick Brown Fox Jumps Over The White Lazy Dog” MD5 Hashing algoritm output 54a4cbe2eadcdb37493b4e66b47fe965 This resultant value is known as hash value. Uses of Hashing algorithms Speed: due to shortened data, Run calculations on data: Easy to... Continue Reading →

Dangling Pointers in C++

Dangling pointers Dangling pointers arise when an object is destroyed. Despite being deleted or de-allocated, it still has an incoming reference because the value of the pointer was not modified. The pointer still points to the memory location of the de-allocated memory. AVOID DANGLING POINTERS It is easy to avoid dangling pointer errors by setting the pointer to NULL... Continue Reading →

Void Pointer in C/C++

A void pointer or generic pointer is a special pointer that can point to objects of any datatype. It is declared just like a normal pointer by using void keyword at the time of declaration. void *p;

Size of a Pointer based on datatype

There is a lot of confusion about the size of the pointers based on datatypes. A usual question is if there is a difference of size in: int *p; char *p; string *p; The answer is simple. As we discussed in the previous detailed post on pointers, A Pointer points to the address of a... Continue Reading →


Declaration of a pointer int *p; int a=10; int is not the datatype of pointer as pointer points to the address of the memory location. Therefore, it is the data type of the content stored at that address. *p is how you declare the pointer. Just like you declare any other variable (say p as... Continue Reading →

Var versus object vs dynamic in C#

These 3 types are used to store any type of data in C#. It means type of variable is decided at the compile time by the compiler and it has all information about the stored value to avoid any sort of issue at run-time. But what are the differences? You can find the differences in... Continue Reading →

Boxing and Unboxing in C#

Boxing Boxing means to convert any value-type to object type or to any interface type implemented by this value type. When the CLR boxes a value type, it wraps the value inside a System.Object instance. In the following example,object o is boxing the integer first. int first=345; object o=first; UNBoxing Unboxing extracts or unwraps the value-type from... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑

Create your website at WordPress.com
Get started