Error: ‘malloc’ was not declared in this scope when using malloc() in c++
1. Handwriting errors.
2. No reference to the appropriate library.
Solution: Introduce stdlib.h
1. Handwriting errors.
2. No reference to the appropriate library.
Solution: Introduce stdlib.h
#include<stdlib.h>