answersLogoWhite

0

Overwriting memory areas by mistake. Here is an example:

int main (void)

{

*(int *)main = 1;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which of the following is not related to the author's main point in this op-ed piece?

C. Police corruption


What is the purpose of ddr memory in a laptop?

DDR is a memory in which most of your default memories are stored. Find the defrag button and this will clean up the memory getting ride of any error memory or corruption memory.


What is the memory management operator in c plus plus?

There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.


What computer shows uses memory if half memory is corrupt?

Not sure what you are asking. If half the memory is ok, then you can use that half, but beware - the corruption works at random, so you should regard all memory as suspect.


What are two characteristics of C that make it less safe than Pascal?

Two characteristics that make C less safe than Pascal are its lack of built-in bounds checking and the use of pointers. In C, developers can easily access memory outside the allocated space, leading to buffer overflows and undefined behavior. Additionally, C's pointer arithmetic allows direct manipulation of memory addresses, which can lead to accidental corruption of data and increased vulnerability to security issues. In contrast, Pascal enforces stricter type and memory management, reducing the risk of such errors.


What are new and delete operators in c plus plus?

New and Delete are the memory management operators in c++,like c language we use malloc() and calloc() functions to allocate memory and free() functiong to release the memory similarily we use new to allocate memory in C++ and Delete to release the allocated memory....


Which type of computer most likely to use ECC memory?

ECC memory is used in most computers where data corruption cannot be tolerated under any circumstances, such as for scientific or financial computing.


Where the heap memory is allocated in c?

Main Memory (RAM).


What can you do to prevent data corruption issues when using USB flash memory?

The most common way to prevent data corruption when using a USB flash memory drive, or thumb drive, is to make sure that you click the eject device option before removing the thumb drive.


Is C row major when it comes to memory layout?

Yes, C is row major when it comes to memory layout.


At what time the memory is allocated for variable in c and c?

Static memory allocation occurs at compile time where as dynamic memory allocation occurs at run time.


What is unsafe code in c?

Unsafe code in C refers to code that performs operations that can lead to undefined behavior, memory corruption, or security vulnerabilities. This includes practices like using pointers incorrectly, accessing out-of-bounds memory, and not properly managing memory allocation and deallocation. Such code can compromise the stability and security of applications, as it can lead to errors that are difficult to detect and debug. Developers must exercise caution and follow best practices to mitigate risks associated with unsafe code.