edited by
638 views
2 votes
2 votes
# include <stdio.h>
int main()
{
static int a[ ] ={90, 98, 99, 96, 84, 70};
static int *p[ ]={a+2, a+1, a, a+3, a+4, a+5};
static int **S={p+4, p+5, p+1, p, p+2, p+3};
int *** ptr; ptr=S+2;
printf(“%d”, ***(ptr+3)-**(p+1));
}
edited by

1 Answer

6 votes
6 votes

Here there is a typo **S Should be array

It should be **S[ ]-2 is Ans

edited by

Related questions

2 votes
2 votes
1 answer
1
0 votes
0 votes
1 answer
2
Nishi Agarwal asked Mar 10, 2019
614 views
void f(int x,int &y,const int &z){x+=z; y+=z;}int main(){ int a=22,b=33,c=44; f(a,b,c); f(2*a-3,b,c); printf("a=%d b=%d c=%d",a,b,c); return 0;}
0 votes
0 votes
0 answers
3
aimhigh asked Jan 8, 2019
1,260 views
#include<stdio.h>void main(){int p=-8;int i= (p++,++p);printf("%d\n",i);}
0 votes
0 votes
1 answer
4
Rohit Gupta 8 asked Nov 8, 2017
7,114 views
Let A be a square matrix of size n x n. Consider the following program. What is the expected output?C = 100 for(i=0; i<n; i++) for (j=0; j<n; j++) { Temp = A[i][j] + C A[...