Teaching HPSC Lecturer (Technical) Mock Test 2024 Programming and Data Structure Programming in C Pointer
What is the output of the below given code?
#include
int main ()
{
int i = 1022;
char *p = (char *) &i;
printf("%d", *p);
return 0;
}1
-2
2
-1
3
1
4
2
5
Question Not Attempted