ISRO exam 2016 – Question 25 with Solution
In this video we are going to discuss another question which was asked in the exam of ISRO
- What will be output of the following program? Assume that you are running this program in little-endian processor.
#include<stdio.h>
int main()
{
short a=320;
char *ptr;
ptr=(char *)&a;
printf(“%d”,*ptr);
return 0;
}
- 1
- 320
- 64
- Compilation error