python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Pointer printing first char of string
#include <iostream>
using namespace std;
char* input(char **S);
int main()
{
char **S = new char *;
char *K = input(S);
//cout << K << endl;
cout << *K <&l...
Ron
Votes: 0
Answers: 1
When I write my own strchr function, there is a part in the return step that I don't understand
I'm trying to write my own strchr function for school, but there is something I don't understand.
char *ft_strchr(const char *s, int c)
{
size_t i;
size_t len;
i = -1;
len = ft_s...

user13101974
Votes: 0
Answers: 1