Top

Discussion

What will be the output of the program ?

#include
#include

int main()
{
    int i, n;
    char *x="Alice";
    n = strlen(x);
    *x = x[n];
    for(i=0; i<=n; i++)
    {
        printf("%s ", x);
        x++;
    }
    printf("\n", x);
    return 0;
}

 

  • A.Alice
  • B.ecilA
  • C.Alice lice ice ce e
  • D.lice ice ce e

Answer: D

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment