28

#include < stdio.h >
#include < string.h >
int main( )
{
char a[ ]="shark srini";
char *b;
int i;
b=&a[0];
for(i=0;i<4;i++)
{
printf("%c",*a);
b++;
}
}


Output:


s
s
s
s

s

Logic:


click here to get the logic.

Related Posts