edited by
452 views
2 votes
2 votes
#include 
int main() 
{ int *p, a; p = &a;
scanf("%d",p);
printf("a = %d *p = %d", a, *p); }
  1. a = 32766 *p = 32766
  2. a = 32767 *p = 32767
  3. a = -1219137971 *p = -1219137971
  4. No Output
edited by

1 Answer

0 votes
0 votes
I think its B

32767 is the max value of integer

Related questions

1 votes
1 votes
2 answers
1
Umang Raman asked Oct 7, 2015
1,121 views
int main (){ int a=5,b=3; printf("%d", a+++++b); // 5 +'s }Please Explain.
1 votes
1 votes
3 answers
2
ajit asked Oct 1, 2015
1,581 views
what is the output of the following c code?#include<stdio.h void main() { int index; for(index=1;index<=5;index++) { printf("%d",index); if(index==3) continue; } }a)1245b...
2 votes
2 votes
5 answers
3
debanjan sarkar asked Sep 3, 2015
6,404 views
void myfunc(int X){ if(X 0) myfunc( X ); printf("%d", X); } int main(){ myfunc(5); return 0; }0,0,1,2,3,44,3,2,1,04,3,2,1,0,00,1,2,3,4