Check out example codes for "error: ‘memset’ was not declared in this scope in cpp". It will help you in understanding the concepts better.

Code Example 1

C: #include <string.h>

C++: #include <cstring>

NOTE: inclusion of above headers works fine

Learn ReactJs, React Native from akashmittal.com