retagged by
580 views

2 Answers

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
selected by
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

Related questions

2 votes
2 votes
0 answers
1
srestha asked Jan 28, 2019
654 views
void foo(int n) { for(i1=1;i1<=n;i1++) { for(i2=1;i2<=i1;i2++) { ....... { for(i6=1;i6<=i5;i6++) { count++; } } } } }Count initially 0.What is value returned by foo(8)?
2 votes
2 votes
2 answers
2