The Gateway to Computer Science Excellence
0 votes
51 views
What is the output of the following program?

#include<stdio.h>

 main()
{
    int i = 258;
    int *iptr = &i;
    printf("%d %d",*((char*)iptr),*((char*)iptr + 1));
}
explain briefly.
in Programming by Junior (929 points) | 51 views
+1

Output is 2 1

0

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,362 answers
198,492 comments
105,260 users