Home Modern › Forums › ISRO › What will be output of the following program? Assume that you are running this program in little-endian processor. (A) 1 What will be output of the following program? Assume that you are running this program in little-endian processor. (A) 1#include<stdio.h>
int
main() {
short
a = 320;
char
* ptr;
ptr = (
char
* ) & a;
printf
(
"%d"
, * ptr);
return
0;
}
(B) 320
(C) 64
(D) Compilation error#include<stdio.h>
int
main() {
short
a = 320;
char
* ptr;
ptr = (
char
* ) & a;
printf
(
"%d"
, * ptr);
return
0;
}
(B) 320
(C) 64
(D) Compilation error
nan