Write a C program with a function that changes the byte order of an integer by treating it as an array of characters.
Write a C program with a function that changes the byte order of an integer by treating it as an array of characters. The function should be defined as the following: void swap ( char* data ) { ... }It should be called like the following: int k = 0x0a0b0c0d; swap( (char*) &k ); After swap, the byte order of k should become 0x0d0c0b0a.