What is the output of the following problem ?

		
					

Loading

โœช Choose the correct option.

What is the output of the following problem ?


int main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("
%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
return 0;
}

A. segmentation falult
B. mmmm
aaaa nnnn
C. Compiler Error
D. None of these

Leave a Comment