CP pointer Q18

0. Consider the following program.
main()
{
char x[10], *ptr = x;
scanf("%s", x);
change(&x[4]);
}
change ( char a[ ] )
{
puts(a);
}
If abcdefg is the input, the output will be

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *