logo

Crowdly

What will be the output of the following code? #include <iostream> using nam...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

What will be the output of the following code?

#include <iostream>

using namespace std;

int main() {

    int num=0x1234567;

    unsigned char *byte_ptr = (unsigned char *)&num;

    for (int i = 0; i < sizeof(num); i++) {

        cout << hex << +byte_ptr[i] << " "; }

    return 0;

}

0%
0%
100%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на do.ipo.kpi.ua?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!