573 views
0 votes
0 votes
  #include <stdio.h>    
 int main()    {       
 int i = 10;       
 int *const p = &i;       
 fd(&p);       
 printf("%d\n", *p);    }    
void fd(int **p)    {     
   int j = 11;      
  *p = &j;       
 printf("%d\n", **p);   
 }

1 Answer

Related questions

2 votes
2 votes
1 answer
1
1 votes
1 votes
1 answer
2
Na462 asked Jan 8, 2019
1,437 views
#include <stdio.h>main (){unsigned x = -10;int X = 20;if (X x) printf ("Hello");else{ printf ("%d",x); printf ("Jello"); }}
7 votes
7 votes
3 answers
3
Parshu gate asked Nov 20, 2017
780 views
What is the output of the following program?#include<stdio.h int main() { int array[]={10, 20, 30, 40}; printf(“%d”, -2[array]); return 0; }$-60$$-30$$60$Garbage valu...
3 votes
3 votes
1 answer
4
Parshu gate asked Nov 13, 2017
1,412 views
main( ){int n[3][3] = {2, 4, 3,6, 8, 5,3, 5, 1} ;printf ( "\n%d %d %d", *n, n[3][3], n ) ;}