Consider the following C function C#include <stdio.h> int main(void) { char c[…

ISRO Scientist/Engineer SC 2017

Consider the following C function

C
#include <stdio.h>
int main(void)
   {
    char c[ ] = "ICRBCSIT17";
    char *p=c;
    printf("%s", c+2[p] – 6[p] – 1);
    return 0;
   }

The output of the program is

  1. A.

    SI

  2. B.

    IT

  3. C.

    T1

  4. D.

    17

Attempted by 510 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…