Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  hello
Language: C/C++
Code:
#include <stdio.h>
#include <string.h>
#include <iostream.h>

int main ()
{
char str[] ="This a sample string";
char * pch;
char arr1[20];
pch = strtok (str, " ");
int i = 0;
while (pch != NULL)
{
printf ("%sn",pch);
pch = strtok (NULL, " ");
i++;
}
return 0;
}
          
          
          
          
Comments: