Bro, i know you don't get significant amount of views but you help a lot with someone like me who is starting :)) good job bro i wish all the hard work you put will be re payed :)
Thanks! I needed this while trying to learn something new when social distancing during the virus. Your vids explain things I think a lot of people with programming experience takes for granted.
Hey Caleb, just wanted to say I appreciate your effort you put into these videos, you don't understand how much it helps people like us new to the programming scene. Much love wishing you all the best!
Almost all modern systems have protected memory so you don't need to worry about a character pointer going and "hacking your bank account". It will however, clobber your programs memory and likely cause your program to crash.
"If you create a char array with 5 characters, the size will be 6" Print it out and stick it to every wall you can find. As a beginner in C, I learned the hard way that strlen() is lying to you.
when we give like char a[10] = "hello" then the compiler inserts null at the end of a string , what if we get the size of string from the user and dynamically allocate memory in the runtime like char * a = (char*)malloc(sizeof(char) * n) here who is assigning null at the end of a string ,,,,, i mean who is doing that job????
There are two types of strings: array one is like { char str[ ] = {'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '\0'} } We have also literal string { char str[ ] = "Hello World"; } In the direct one we don't have to write the null character, the same thing for loop through strings. And you don't see it, The computer will understand it and compile.
Bro, i know you don't get significant amount of views but you help a lot with someone like me who is starting :)) good job bro i wish all the hard work you put will be re payed :)
Yesss
same
After he dies, he would be sent to heaven
Thanks! I needed this while trying to learn something new when social distancing during the virus. Your vids explain things I think a lot of people with programming experience takes for granted.
I want to make a game, and I'm pushing myself to watch your videos to learn. Thank you very much for keeping these lessons free.
Hey Caleb, just wanted to say I appreciate your effort you put into these videos, you don't understand how much it helps people like us new to the programming scene. Much love wishing you all the best!
int a=100;
printf("%d%% agree", a);😎
this guy is awesome keep up the good work Caleb I am learning a lot as a first-year CS student.
Null? More like Full...of wonderful information! Thanks again for every single one of these videos Caleb!
Please put more ads on your vids i'd gladly watch them =) you are a great person
Almost all modern systems have protected memory so you don't need to worry about a character pointer going and "hacking your bank account". It will however, clobber your programs memory and likely cause your program to crash.
Oh, yeah? Protected? So I want to break it, get access to bank accounts and get huge money by reporting issues B-)
It depends on the program silly
Thank you so much my exam is after few hours I saw most of your viedoes it was very helpful and simple man YOU ARE INCREDIBLE
keep up
How did your exam go?
@@PunmasterSTP I’ve got D 😭
@@yasserj3693 I'm sorry to hear that! How are the rest of your classes going/how did they go?
"If you create a char array with 5 characters, the size will be 6"
Print it out and stick it to every wall you can find. As a beginner in C, I learned the hard way that strlen() is lying to you.
omg this actually just solved my problem right now, ty bro!
I forgot to putt \0 and now my bank account is empty
I like the sarcasm 🤣
actually, there's a difference between NULL and nul. The nul terminator is to indicate the end of a string in C. Not Null...
Excellent work....
when we give like char a[10] = "hello" then the compiler inserts null at the end of a string , what if we get the size of string from the user and dynamically allocate memory in the runtime like char * a = (char*)malloc(sizeof(char) * n) here who is assigning null at the end of a string ,,,,, i mean who is doing that job????
Caleb thank you so much for this video perfectly explained this
do you have any examples of c programming?
What types of examples? If you've watched all of the previous videos in the playlist so far, he's worked through several "example" programs.
WHAT IS THE USE OF THE NULL STRING
it stops the string
Will '0x00' act as a null terminator for character arrays?
Is it valid on C++?
Depende kkkk Tem que ver a sintaxe do C++, é bem diferente em vários aspectos.
thank uu so muchh brooo
dude, how can i give you my money?
Im confused i dont get anything like how do i see through these NULL ?
There are two types of strings:
array one is like { char str[ ] = {'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '\0'} }
We have also literal string { char str[ ] = "Hello World"; }
In the direct one we don't have to write the null character, the same thing for loop through strings.
And you don't see it, The computer will understand it and compile.
The Best