Miscellaneous Articles

Page 7 of 8

Difference between new and malloc( )

AmitDiwan
AmitDiwan
Updated on 24-Mar-2021 1K+ Views

In this post, we will understand the difference between ‘new’ and ‘malloc’.newIt is present in C++, Java, and C#.It is an operator that can be used to call the constructor of the object.It can be overloaded.If it fails, an exception is thrown.It doesn’t need the ‘sizeof’ operator.It doesn’t reallocate memory.It can initialize an object when allocating memory for it.The memory allocated by ‘new’ operator can be de-allocated using ‘delete’ operator.It reduces the execution time of the application.Example#include using namespace std; int main(){ int *val = new int(10); cout

Read More

Difference Between malloc and calloc

AmitDiwan
AmitDiwan
Updated on 24-Mar-2021 968 Views

In this post, we will understand the difference between malloc and calloc.MallocThe method ‘malloc’ is used to assign a block of memory when it is requested.It doesn’t clear the memory.It only initializes the allocated memory when explicitly requested.It allocates memory of a specific ‘size’.This size is passed as parameter to it.This size is allocated from a heap.It performs its job quickly.Examplevoid *malloc(size_t size);CallocIt assigns the requested memory to multiple blocks.This memory allocated is initiated to zero.This initialization to 0 is done by ‘calloc’ method.It allocates memory to the required operation of a specific ‘size’, i.e num * size.The ‘num’ refers ...

Read More

Difference Between Stack and Queue

AmitDiwan
AmitDiwan
Updated on 24-Mar-2021 1K+ Views

In this post, we will understand the difference between Stack and Queue.StackThey are based on LIFO- Last In First Out.This means the element inserted at the end is the first element to get deleted.Insertion and deletion happen in a stack from one end only, i.e the top.Insert operation is known as ‘push’ operation.Delete operation is known as ‘pop’ operation.A pointer is used to access the list, it is known as ‘top’.The ‘top’ points to the last element of the list.It helps work with problems associated with recursion.Representation of Stack (LIFO)QueuesThey are based on FIFO- First In First Out.This means the ...

Read More

Difference Between Applet and Application

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 3K+ Views

In this post, we will understand the difference between Applet and Application.ApplicationThey are similar to Java programs.They can be executed independently without using web browser.It requires a ’main’ function for it to be executed.Java applications have full access to local file system and network.They can access all kinds of resources that are available to the system.They can execute the programs with the help of the local system.An application program is required when a task needs to be directly performed for the user.AppletsThey are small Java programs.They have been designed to be included with HTML documents.They need Java enabled web browser ...

Read More

Difference Between Link and Association

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 13K+ Views

In this post, we will understand the difference between Link and Association.LinkIt can be understood as the physical connection between objects.It helps tell about the relationship among objects.It is represented using line segment between objects.They can’t be referenced.It is used in UML designs.AssociationIt is a specification about the collection of links.The connections are related to classes.It is a general relationship between classes.They are implemented using programming languages as a reference model.It shows connections between classes using line segments.It is used in UML designs.

Read More

Difference Between Friend Function and Friend Class

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 6K+ Views

In this post, we will understand the difference between Friend function and Friend class.Friend FunctionIt is usually used with operator overloading operation.It is used with the ‘friend’ keyword.It helps give a non-member function the access to the private members of the class.It has to be declared before it is used.It is used to access private and protected members of the class.It can be a global function or a function in another class.Exampleclass Node {    private:    int val;    Node* next;    // Other members of Node Class //    friend int LinkedList::search();    // Only search method ...

Read More

Difference Between Server-side Scripting and Clientside Scripting

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 6K+ Views

In this post, we will understand the difference between server-side scripting and client-side scripting.Server-side ScriptingIt helps work with the back end.It doesn’t depend on the client.It runs on the web server.It helps provide a response to every request that comes in from the user/client.This is not visible to the client side of the application.It requires the interaction with the server for the data to be process.Server side scripting requires languages such as PHP, ASP.net, ColdFusion, Python, Ruby on Rails.It is considered to be a secure way of working with applications.It can be used to customize web pages.It can also be ...

Read More

Difference Between Linear Queue and Circular Queue

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 3K+ Views

In this post, we will understand the difference between linear queue and circular queue −Linear QueueIt is a linear data structure, which data is arranged in a linear pattern.Operations such as insertion and deletion are done from rear and front respectively.It requires more memory, since data is stored in a linear fashion.The element that is added to a linear queue at first, is the element that gets deleted first.It follows FIFO, i.e first in first out.The element that is inserted first is the element that is deleted first as well.It is not as efficient as a circular queue structure.Circular QueueThe ...

Read More

Explain the Difference Between Definition and Declaration

AmitDiwan
AmitDiwan
Updated on 23-Mar-2021 2K+ Views

In this post, we will understand the difference between definition and declaration.DefinitionDefinition, with respect to a function indicates that the body of the function has been developed.With respect to variable, it means a value has been associated/defined with that variable.A function can be defined only once.Once a function or variable has been defined, it is ready to be used.A variable can be re-defined multiple times, as and when required. This depends on the language and the scopes.Memory is allocated when function or a variable is defined.Below is an example of variable definitionsum = 0A variable named ‘sum’ is assigned to ...

Read More

Life after 31st march 2017 for jio subscribers jio prime

Samual Sam
Samual Sam
Updated on 22-Oct-2019 559 Views

With the commercial launch of Reliance Jio services on September 5, 2016, the telecom operator introduced ‘Welcome Offer’ with free voice and data (with a cap of 4GB data per day) services on the Jio SIM up to December 31, 2016. The company extended the ‘Welcome Offer’ by another three months till March 31, 2017 by relaunching it as the ‘Happy New Year Offer.’Welcome Offer’ also offered free voice calls, video calling, messaging and data, but with a data limit of 1GB per day. Reliance Jio claimed to be the fastest growing technology company in the world, and had close ...

Read More
Showing 61–70 of 71 articles
« Prev 1 4 5 6 7 8 Next »
Advertisements