edited by
383 views

1 Answer

Best answer
5 votes
5 votes
  • Here, in the function *f() , Variable J has been allocated memory in the runtime on heap and hence returned value J is not lost.
  • Hence, value of J is returned and pointer variable is initialized with 10
  • This program snippet simply prints the value 10.
selected by

Related questions

0 votes
0 votes
0 answers
1
1 votes
1 votes
2 answers
2
Ashwani Kumar 2 asked Oct 16, 2017
801 views
int main() { int i=-1, j=-1,k=0,l=2,m; m= i++ && j++ && k++ || l++ ; printf("%d %d %d %d %d", i,j,k,l,m); return 0; }
0 votes
0 votes
1 answer
3
Mandeep Singh asked Mar 28, 2017
401 views
int c=31, n;scanf(“%d”,&n);int k=n<<c;if(k&&1) return 1;return 0;
0 votes
0 votes
1 answer
4
asu asked May 15, 2016
790 views
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }