Mihai_Preda

Untitled

Mar 29th, 2023
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char c[20] = "salut", *t;
  9.     strncpy(c+3, "ata", 2);
  10.     t = strtok(c, "l");
  11.     t = strtok(NULL, "l");
  12.     cout << t;
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment