#include <stdio.h> int add_two_void_pointers(void *a, void *b) { // Your logic here int *ptr1 = (int *)a; int *ptr2 = (int *)b; return *ptr1 + *ptr2; } int main() { int x, y; scanf("%d %d", &x, &y); int result = add_two_void_pointers(&x, &y); printf("%d", result); return 0; }
Test Cases
Test Results
Input
10 20
Expected Output
30