What will be output of the following “c” code?
		
					

Loading

โœช Choose the correct option.

What will be output of the following “c” code?


#include
int main(){
int i;
static double *p,*q,*r,*s,t=5.0;
double **arr[]={&p,&q,&r,&s};
*p=*q=*r=*s=t;
for(i=0;i<4;i++)
printf("%.0f ",**arr[i]);
return 0;
}

A. 5 5 5 5 5
B. 5 6 7 8 9
C. 5 4 3 2 1
D. Infinte loop

Leave a Comment