answersLogoWhite

0


Best Answer

Overwriting memory areas by mistake. Here is an example:

int main (void)

{

*(int *)main = 1;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

5d ago

Memory corruption in C refers to situations where a program unintentionally alters the contents of memory locations that it is not supposed to access or modify. This can lead to unexpected and potentially dangerous behavior, such as crashes, data corruption, or security vulnerabilities. Memory corruption in C is often a result of issues like buffer overflows, uninitialized variables, or improperly managed memory allocations.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is memory corruption in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Political Science

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 the five dimensions of corruption?

The five dimensions of corruption are grand corruption, administrative corruption, political corruption, petty corruption, and systemic corruption. These dimensions encompass different forms and scales of corrupt practices within various sectors and levels of society.


Does Puerto Rico have a corruption?

Puerto has one corruption thats it


What is the corruption word for next?

The word "corruption" for "next" is "depravity."


What makes India run is corruption?

what makes India run is corruption

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 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.


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 meant by contiguous memory allocation in C?

Contiguous memory allocation in C programming refers to the assigning of consecutive memory blocks to a process. Contiguous memory allocation is one of the oldest and most popular memory allocation schemes in programming.


What memory modules support ECC?

ECC Memory is a computer data storage device. However this memory device is not like the many others because it is better capable of detect and correct internal corruption than others.


What is an address in C plus plus programming?

An address in C or C++ is the location in memory of an object or function. An address is the contents of a pointer, as opposed to the contents of the memory location pointed to by the pointer.