main()

{

int i = 258;

int *iPtr = &i;

printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );

}

Answer Posted / susie

Answer :

2 1

Explanation:

The integer value 257 can be represented in binary as,
00000001 00000001. Remember that the INTEL machines are
‘small-endian’ machines. Small-endian means that the lower
order bytes are stored in the higher memory addresses and
the higher order bytes are stored in lower addresses. The
integer value 258 is stored in memory as: 00000001 00000010.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

could you please send the program code for multiplying sparse matrix in c????

3078


Write a routine to implement the polymarker function

4388


Sir... please give some important coding questions asked by product companies..

1805


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2417


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2829






Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3861


why nlogn is the lower limit of any sort algorithm?

2381


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4153


write a program for area of circumference of shapes

2040


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3131


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2267


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2342


How to palindrom string in c language?

8895


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2867


write a simple calculator c program to perform addition, subtraction, mul and div.

3158