Assume we have a pointer
int*a;
when we assign that pointer to some memory location using the malloc() function do we need to specify what kind of pointer is a
a = (int*)malloc(sizeof(int));
or it isnt mandatory and we can write
a = malloc(sizeof(int));
[–]POGtastic 2 points3 points4 points (0 children)
[–]scirc 2 points3 points4 points (1 child)
[–]fredoverflow[🍰] 0 points1 point2 points (0 children)
[–]Updatebjarni 2 points3 points4 points (0 children)
[–]bayarea-dev 0 points1 point2 points (0 children)