Thanks...it is so useful if you code in C++/C dealing with those string inputs...
@rajthakrar22912 жыл бұрын
69th like :) Thanks for the video bdw!!
@jabuci4 жыл бұрын
Thanks! Never heard of these functions... but they seem useful!
@bushraw662 жыл бұрын
hi , thank you very much for this video but I have a question , why did we use a loop for strspn? for other functions like strchar or strrchar we didn't. And the function it self went through characters one by one, so when do we know which one of them we use a loop in and which one we don't???
@CodeVault2 жыл бұрын
You can use strspn outside a loop as well. The idea is we needed the number of digits in that loop to print character by character. It's just for this specific use case
@shubh-kr4 жыл бұрын
So you do make videos, especially for C language?
@CodeVault4 жыл бұрын
There are some videos on JavaScript too. Expect some more on web development as well!
@Greg0ryful14 жыл бұрын
Why str + i ends up storing “25 years old” in age? I got a little confused.
@CodeVault4 жыл бұрын
It's because str[i] is a digit, namely, the first digit encountered in the string. str[i] is the same as *(str + i) which dereferences the char at address str + i Thus, str + i must be the string that starts at the first digit of the initial string (str). Both str and age point to the same string, except, age is a bit further along.
@Greg0ryful14 жыл бұрын
@@CodeVault I got it know! Thanks.
@taherrezzag98484 жыл бұрын
hi thanks for the video i want to ask you how yo delete a line in file in c