Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #37.0K
Ranked #3K
~2K People Reached
Favorite Forums
Favorite Tags
c x 3
java x 2
Member Avatar for John_165

class Sample { int num; void method() { num = 1; // Sample.num is set to 1 int num = num = 2; // num in method is set to 2, the second num is num in method num = 3; // num in method is set to 3 } …

Member Avatar for John_165
0
1K
Member Avatar for COKEDUDE

Is this the whole code? k and i are not defined and initialized. Do you want to compare all read strings with the actual one?

Member Avatar for Rolf_2
0
268
Member Avatar for parth2911

try for(i=c+1;i<=e;i++) { a[i]=b[i-c]; } instead of for(i=c+1;i<=e;i++) { for(j=1;j<=d;j++) { a[i]=b[j]; // this sets a[i]=b[d] because all settings a[i]=b[j] with j<d are overwritten by next j } } Please be aware that in C arrays are zero based i.e. array a begins with a[0] until a[9] with your declaration. …

Member Avatar for parth2911
0
251