Sscanf und Sprintf in C.

/*
The sscanf(): It reads data from a character string.
The sprintf(): This function is used to write data to a character string.
*/
#include<stdio.h>
int main(){
   char instring[]="Tutorials Point";
   char outstring[50],string1[10],string2[10];
   sscanf(instring,"%s %s",string1,string2);
   printf("%s\n",string1);
   printf("%s",instring);
   return 0;
}

/*
Tutorials
Tutorials Point
*/
Tiny Coders