Consider the following C program. #include<stdio.h> #include<string.h> int…
GATE · 2017 · CS · Set 2 · Computer Science & IT
Consider the following C program.
#include<stdio.h> #include<string.h> int main() { char* c="GATECSIT2017"; char* p=c; printf("%d", (int)strlen(c+2[p]-6[p]-1)); return 0; }The output of the program is _______
Attempted by 179 students.
Sign up free to check your answer
Sign up freeLoading lesson…