Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 354 Bytes

arithOperationsOnVoidPointer.md

File metadata and controls

11 lines (6 loc) · 354 Bytes

Pattern: Arithmetic operation on void pointer

Issue: -

Description

When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on void * is a GNU C extension, which defines the sizeof(void) to be 1.

Further Reading