char *getString() { char *str = "Nice test for strings"; return str; } int…

char *getString()

{

char *str = "Nice test for strings";

return str;

}

int main()

{

printf("%s", getString());

getchar();

return 0;

}

  1. A.

    Nice test for strings

  2. B.

    18 Nice test for strings

  3. C.

    Error

  4. D.

    0

Attempted by 191 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…