in Programming in C
174 views
0 votes
0 votes

What should be the answer of the below code?

Please explain the logic used.

#include <stdio.h>
int main() {
        int i = 258;
        int *iptr = &i;
        printf("%d%d", *((char*)iptr), *((char*)iptr + 1));
}

 

in Programming in C
by
174 views

Please log in or register to answer this question.