#includeIn this example, we set the output stream format to hexadecimal and print a negative integer. Then we unset the decimal flag and print the same negative integer again, which is now formatted in hexadecimal regardless of sign. Package Library: This function is part of the C++ standard library and is defined in theusing namespace std; int main() { int num = -15; cout << hex << num << endl; // output: fffffff1 cout << dec << num << endl; // output: -15 cout.unsetf(ios::dec); // clear decimal flag cout << num << endl; // output: fffffff1 return 0; }