Is the following code OK to use or not.
int main() {
    int *p = (int *)malloc(sizeof(int));
    int *q = (int *)malloc(sizeof(int));
    free(p);
    free(q);
    if (p==q) {
    //...
    }
}
Is the following code OK to use or not.
int main() {
    int *p = (int *)malloc(sizeof(int));
    int *q = (int *)malloc(sizeof(int));
    free(p);
    free(q);
    if (p==q) {
    //...
    }
}
 
    
    