int to void* c

#include <stdio.h>

int main() {
    int integerValue = 42;
    void *voidPointer;

    voidPointer = (void *)&integerValue;

    printf("Integer Value: %d\n", integerValue);
    printf("Void Pointer Value: %p\n", voidPointer);

    return 0;
}