3 votes 3 votes char *a = “MADEEASY”; char *b = “GATECSIT2019”; char *r = a; char *s = b; printf(“%d”, (int) strlen (b+3[r] – 1[s])); return 0; Whats the output? Answer given 8 Programming in C made-easy-test-series programming programming-in-c pointers + – Shamim Ahmed asked Dec 11, 2018 • retagged Mar 4, 2019 by akash.dinkar12 Shamim Ahmed 582 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes b+3[r]-1[s] = &b[0] + r[3] - s[1] =&b[0] + 'E' - 'A' =&b[0] + 4 =&b[4] ="CSIT2009" strlen("CSIT2009") = 8 kd..... answered Dec 11, 2018 • selected Dec 22, 2018 by Lakshman Bhaiya kd..... comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 3[r] means r+3 and 1[s] means s+1 so r+3 will be D ans s+1 will be A so subtracting it we get value as 3 now b+3 is means string length after E which is CSIT2019 which is of length 8 Navneet Kalra answered Dec 11, 2018 Navneet Kalra comment Share Follow See all 0 reply Please log in or register to add a comment.