In below program, what would you put in place of “?” to print “TATA”.…

PYQ TCS NQT 2025

In below program, what would you put in place of “?” to print “TATA”. Obviously, something other than “TATA”.

int main()

{

char arr[] = "TATA and TATA";

printf("%s", ?);

getchar();

return 0;

}

  1. A.

    It is not possible to print TATA without mentioning "TATA" in place of "?"

  2. B.

    The program contains error

  3. C.

    arr+9

  4. D.

    &arr + 8

Attempted by 674 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…