AlexandruDu

STRCHR

Nov 17th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. s=strchr(s,c);
  2. if(strchr(s,c)!=NULL) DACA c apartine s
  3.  p=strchr(s,c);
  4. s[p-s]
  5. s="CLASA"
  6. p=strchr(s,'A')
  7. i=p-s;
  8. rezulta i=2
Advertisement
Add Comment
Please, Sign In to add comment