0
How to do search in a 2d array of string
5 Answers
+ 1
use a nested for loop, easiest way to search a 2d array
0
but nested loop can work only for intiger array but i require string array for comparision
0
Sid Bro nested loop can work for any array, as string arrays have indexes too
0
but i want to compare strings not single character
0
string arr[] = {"abc", "def"};
cout << arr[0];
this should output "abc"