Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int ara[] = { 12345 , 2 , 3 , 4 , 12345 , 2 , 3 } ;
- int result , i , n = 7 , p ;
- result = ara[0] ;
- for( i = 1 ; i < n ; i++ ) {
- p = result ;
- result = result ^ ara[i] ;
- printf("%d = %d ^ %d\n",result,p,ara[i]) ;
- }
- printf("result : %d\n",result) ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement