Main menu

Media Coverage

<div class="small-4 columns">media 1</div>

<div class="small-4 columns">media 2</div>

<div class="small-4 columns">media 3</div>

Reach to Us

void main() { int a=903; char *ptr=(char*)&a;

void main() { int a=903; char *ptr=(char*)&a;

void main()
{

int a=903;

char *ptr=(char*)&a;

printf("%d",*ptr++);

printf("%d",*ptr);

}

 

 

 

 

6Comments
nishantv's picture

-1213

innovwelt's picture

it is dependent on Endian format. we cannot say it for sure.

my machine is Little Endian. So, it gives -121 3.

In Big Endian machine, It could give 3 -121. I have not tested it though

nishantv's picture

I have tested it on my machine

innovwelt's picture

mostly, our PCs are using Intel processors. and they follow Little Endian format.

but the concept is real.

nishantv's picture

okay

banti4uall's picture

35 an 3

Pages