include <stdio.h> void f(int *p,int x){ for(int i=0;i<x;i++){ printf("%x-",p[i]);p[i]=~p[i];printf("-%x\n",p[i]);} } int main(){ int xx[5]={6,2,3,4,5};f(xx,5);return 0;}