Top

Discussion

What will be the output of the program ?

#include

int main()
{
    static char s[25] = "The cocaine man";
    int i=0;
    char ch;
    ch = s[++i];
    printf("%c", ch);
    ch = s[i++];
    printf("%c", ch);
    ch = i++[s];
    printf("%c", ch);
    ch = ++i[s];
    printf("%c", ch);
    return 0;
}

 

  • A.hhe!
  • B.he c
  • C.The c
  • D.Hhec

Answer: A

No answer description available for this question.

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

Post your comment