Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *small (char *num)
- {
- static int i=0;
- if (num[i+1] == '\0')
- return NULL;
- if (num[i] < num[i+1]){
- printf("%c, %c", num[i],num[i+1]);
- i++;
- return small(num);
- }
- return &num[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement