mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-10-09 11:46:20 +02:00
[SPCA] Fix various errors
This commit is contained in:
1 parent
b86fd00a60
commit
25b3381294
15 files changed
+36
-23
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
int a[ 2 ];
|
||||
int *b = malloc( 2 * sizeof( int ) ), *c;
|
||||
int *b = (int *) malloc( 2 * sizeof( int ) ), *c;
|
||||
a[ 2 ] = 5; // assign past the end of an array
|
||||
b[ 0 ] += 2; // assume malloc zeroes out memory
|
||||
c = b + 3; // mess up your pointer arithmetic
|
||||
|
||||
Reference in new issue
Block a user