Java and C Programming Quiz

Casual Mode - Take your time!

1 / 7
Correct
0
Incorrect
0
Score
0%
Multiple Choice

char* riteshFunc (char *ptr) { ptr += 3; return (ptr); } int main() { char *x, *y; x = "HELLO"; y = riteshFunc(x); printf ("y = %s \n", y); return 0; } What will print when the sample code above is executed?

  1. HELLO
  2. ELLO
  3. LLO
  4. LO
Change Mode