I am not able to understand how is this not declared in the scope even after including the string header file.
#include
#include
using namespace std;
int main(){
char s[100]= “Today is a rainy day”;
char *ptr = strtok(s," ");
cout<<ptr<<endl;
while(ptr != NULL){
ptr = strtok(NULL," ");
cout<<ptr<<endl;
}
return 0;
}