
#include <iostream>


void f1(char*);

char* p;
char * s[10] ;

int main(void)
{


	char* a = "I am a student";
	char* b = " , ";
	int i;

	f1(a);

	for(i=0;i<=3;i++)
	printf("%s\n", s[i]);

	system("pause");
	return 0;

}
void f1(char* a)
{
	int i = 0;
	
	char *token;

	token= strtok_s(a, " ,", &p); 
	while (token != NULL) {
		s[i]=token;
		token = strtok_s(NULL, " ,",&p);
		i++;
	}



}