Anonymous
My feedback
2 results found
-
5 votes
An error occurred while saving the comment -
4 votes
An error occurred while saving the comment Anonymous commentedThe data type has been wrongly typed. The data type should be "unsigned" instead of "unisgned" as mentioned in code.
#include<stdio.h>
4
5 int main()
6 {
7
8 unsigned char buffer[5];
9 unsigned char* buffer_ptr = &buffer[4];
10
11 ++buffer_ptr;
_
12 *buffer_ptr = 0x12;
diy.c 12 Warning 415: Likely access of out-of-bounds pointer (1 beyond end of data) by operator 'unary *' [Reference: file diy.c: lines 9, 11]
13 return 0;
_
14 }