一个数组中只有两个数字是出现一次,其他所有数字都出现了两次。编写一个函数找出这两个只出现一次的数字。 #include<stdio.h> #include<string.h> #include<Windows.h> #include <assert.h> void search(int a[], int num) { assert(a); assert(num > 0); int *x = (int *)malloc(sizeof