Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main() {
- uint16_t arr[5] = {0xFF,0xAA,0xA0A0,0xFF00,0xFFFF };
- uint8_t* ptr = (uint8_t*) &arr[0];
- cout << "Low" << "\tHigh" << endl;
- for (int i = 0; i < 10; i++)
- {
- cout << (int) ptr[i] << "\t";
- if ((i > 0) and (i % 2)) cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment