answersLogoWhite

0

your mom your mom

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Why main memory use dynamic memory rather than static memory?

Dynamic memory changes and static stays the same.


Functions of the memory manager?

Memory management functions handle the allocation and deallocationof dynamic Memory. These functions form an abstraction layer above the standard C memory management functionsmalloc, free, and realloc.This block of functions can be replaced by the user with custom code to implement a different memory management scheme. For example, an embedded system application might want to use a fixed-sized static block from which to allocate.


Why static functions cannot use instant variables?

Static functions are tied to a class, not to a particular object. A static function can only access static variables because it has no knowledge of member variables.


Difference between dynamic and static memory?

dynamic is the study of motin,while static is at rest it means that the memory which is used at motin time as by usic calloc,mallaoc,free function ,on the other hand static is the memory which only used at compile time or at the time of work in during progrmming,static memory has drawback ,the drawback is that in this memory ware unable to use the excess memory as we allocate already to cover or improvre this type of problem we use dynamic memory allocation.


Why you can not use this pointer in static functions?

Because this points to the current object, but static methods don't have a current object (actually this is definition of the static methods).


What is dynamic mamory?

Dynamic memory refers to memory that is allocated and deallocated during program execution, as opposed to static memory which is allocated at compile time. In C and C++, dynamic memory allocation is done using functions like malloc() and free(), allowing for flexibility in managing memory resources at runtime. However, improper use of dynamic memory can lead to memory leaks or segmentation faults.


What are the advantage do you have using dynamic memory allocation over static memory?

Static allocations are only useful when you know precisely the type and number of variables your program will use. While fixed size arrays of any size can certainly be allocated statically, the only way you can allocate a variable length array statically is by allocating more memory than you will ever use even in the worst case scenario. This is clearly impractical since some of that memory will never be used at all and most of it will only seldom be used. Local variables, on the other hand, make use of the current thread's stack to improve memory consumption, instantiating variables on an as-required basis with very little cost in terms of performance. However, unlike static memory, the call stacks have very limited capacity and are therefore unsuitable for large data structures, particularly variable length structures. Thus it makes more sense to dynamically allocate variable length arrays on the heap. The only real cost is in terms of the physical allocation but, once allocated, there is no difference in terms of access times compared to static or stack memory. It is all the exact same memory after all.


Can you overload static methods in Java?

Yes you can overload the static method. But it should be avoided because memory to static methods are allocated at the time of class load.....so memory will be wasted if we don't use that methods. Whereas non-static method memory allocation depends on Object


What is the examle of random access memory?

In terms of computing history, some types of RAM that have been used are:Williams-Kilbern CRT dynamic RAMSelectron Tube static RAMWhirlwind Floodgun Tube static RAMMagnetic Core nonvolatile static RAMMagnetic Thinfilm nonvolatile static RAMMagnetic Plated Wire nonvolatile static RAMSolidstate IC static RAM*Solidstate IC dynamic RAM*Magnetic Solidstate IC nonvolatile static MRAMNote: * These are the most common RAM in use today.


How can you use static charges and static elec to generate EMF or elec current?

Static charge and static electricity are 2 different terms for the same thing. Static electricity is voltage without current, usually created by friction. Voltage and EMF are 2 different terms for the same thing. When static electricity generates current, it is called a discharge and the static electricity ceases to exist. It has been discharged.


What is the use of static method?

Static methods are not specific to each instance of a class. This allows you to have functions which return the same output for the same input for each instance of the class.


How can we optimize performance by reducing static in our codebase?

To optimize performance by reducing static in our codebase, we can minimize the use of global variables and functions, utilize local variables and functions instead, and employ techniques such as encapsulation and modularization to limit the scope of static elements. This can help improve code readability, maintainability, and efficiency.