Im doing exam review and one of the questions says there is something wrong with this code and im supposed to fix it. I know it has something to do with the void pointer but cant figure it out. Does anyone know what i would do?
void whatAmI(void *vp, int n) {
    if (n == 1) {
        printf(“Integer: %d\n”, vp);
    } else if (n == 2) {
        printf(“Double: %.2fl\n”, vp);
    } else {
        printf(“Unknown type!”);
    }
}
 
     
    