GATE CS 2017, set 2 · Question 55 · Programming and Data Structures · Numerical answer (NAT) · 2 marks · no negative marks
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 ______.
Answer
Answer 2
Answer from the official GATE CS 2017 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes