notes - calcur.tech/notes-c-programming C Programming Crash Course - www.learn.calebcurry.com/p/c-programming-crash-course Other lessons: Learn Javascript - bit.ly/JavaScriptPlaylist Learn Java - bit.ly/JavaPlaylist Learn C# - bit.ly/CSharpTutorialsPlaylist Learn C++ - bit.ly/CPlusPlusPlaylist Learn C - bit.ly/CTutorialsPlaylist
@marcelbinder21505 жыл бұрын
Huh? We learned that doubles for scanf, for example, need the characters "%d".
@crystalfrappier97507 жыл бұрын
You have no idea how much your vids are helping me. I'm taking website/creation/design and there's a programming with C class in there. I'm not a fan of it and I can't seem to get it by just reading out of a book. So this is helping big time. Thanks!!!
@sairupesh13445 жыл бұрын
wow
@izvarzone5 жыл бұрын
I never see anyone use C for webdesign.
@natalieenriquez-birch79605 жыл бұрын
I thought the format specifier for integer was %d and %lf for double?
@eyyubaydin13704 жыл бұрын
The short answer is that it has no impact on printf, and denotes use of float or double in scanf. For printf, arguments of type float are promoted to double so both %f and %lf are used for double. For scanf, you should use %f for float and %lf for double. source: stackoverflow.com/questions/25860850/what-is-the-difference-between-f-and-lf-in-c
@mohammedriaz49894 жыл бұрын
No cap this guy is really good @Caleb Curry i have an interview and i needed to learn the syntax for C bro you've been such a MASSIVE help THANKS also please keep up the amazing work love the vids.
@andrewruttan33186 жыл бұрын
trying to learn C# right now, and had a hard time understanding what these 3 things actually 'do'. thanks for sharing an explanation, helps a lot!
@TheDFitzChannel4 жыл бұрын
Thank you for making it clear, Caleb. This has helped me.
@Pedro-ix8kd3 жыл бұрын
wow this helps me a lot. I now know what's the difference between the 3. I usually listen to my instructor but can't focus my attention all the way to the end.
@milonsheikh66795 жыл бұрын
Thank you sir , Now I can differ between double and float
@pswr20093 жыл бұрын
Thank you for these videos!! The details you share are filling a lot of gaps in my knowledge.
@takumimusicstore5 жыл бұрын
I attend school for this and the way they explained it wasnt as detailed and simple as this. Thanks a lot !!
@Ab-ve3vw5 жыл бұрын
You are so amazing,fun learning,like your presentation so much.very interesting not boring !!!!
@Programeris8 ай бұрын
epic as always ;) 🙌
@lijiaxin52485 жыл бұрын
i thought it’s “%d” for integers?
@sweepingtime5 жыл бұрын
When you use printf %d and %i works the same way.
@mohammedriaz49894 жыл бұрын
%i
@TheGreatDistracto4 жыл бұрын
#include int main() { //int = integer int = 9; //floating point //precision-how much data the var can hold. printf("%i %f %f ", 1, 1,1111, 1,1111F); return 0; } This that you showed us was in error in all the compilers i used. why if it worked for you?
@estherchan17383 жыл бұрын
idk if you figured it out (i hope you did!) but it's because you did not name the int. int is just the data type, you need to name int something in order to declare the integer. int integer = 9; //VALID int = 9; //NOT VALID
@TheGreatDistracto3 жыл бұрын
@@estherchan1738 do you mean by /*Declare Int*/ ?
@estherchan17383 жыл бұрын
@@TheGreatDistracto I ran your code, just two things to fix 1) Naming your int 2) Using decimal points instead of commas I edited your code (and added comments), you can go ahead and play with it. Hope it helps! #include int main() { //int = 9; NOT VALID because no name. /* You need to name the int something, * lets call the integer 'dogs' */ int dogs = 6; //VALID because the int has a name (dogs) /*If you want to print the integer, *you call it by name (dogs) instead of value (6). */ printf("Number of dogs: %i ", dogs); // **Corrected 11111,1111F to 11111.1111F printf("%i %f %f ", 1, 11111.1111, 11111.1111F); return 0; }
@LostOnceLefthanded3 жыл бұрын
I highly doubt you have a fractional part of a dog as a pet. That's just messed up!" The person who adopted a dog that had lost 2 of his legs and part of his spleen: **cries in the corner**
@aliobeid39534 жыл бұрын
Good explanation!!
@qwaysar37212 жыл бұрын
thank you this helps me alot
@abdullahbinmamun38036 жыл бұрын
it was so much helpful. thanks a lot.
@francorodriguez14894 жыл бұрын
Thanks, this helped me :)
@WaylandFoster7 жыл бұрын
I have a general question about the c++ number output system. Currently, I have written a program that is capable of generating a text file for users given certain input from the user in the command console. however, sometimes the numbers generated by the program exceed one million, and thus the program begins to write it as, for example, 1.0064e+006.I understand this means Overflow Error, in a basic understanding, but is there any way to make it output the full number, rather than e+006?
@nonnodacciaio7042 жыл бұрын
Just use a long
@grapejelly73 жыл бұрын
thx,bro it's helpful
@shahad96247 жыл бұрын
Thank you very much really thank you but how i can make a number smaller as just 2 digits after the point like 12.34 ??
@user-pu8dj9mv9u3 жыл бұрын
My dog has a leg missing. That counts as a fractional dog right?
@keeratkaurguliani17646 жыл бұрын
Could you pls upload a video on enumeration types in C++?
@bryanlomerio27624 жыл бұрын
thank youuu sirrr🥺
@amantin5 жыл бұрын
5:34 - to an non programmer, thats the absurdiest comment you could make :P (I only see there)
@sar1n1203 жыл бұрын
Super helpful :)
@JustThink20006 ай бұрын
Just as confused as I came into this video. The explanations on float and double are pretty confusing still.
@ayantika34 жыл бұрын
What does return 0 do
@Salamanca-joro10 ай бұрын
So as i know float is for number that has fractional point like 25.344 and int is for real numbers like 25 😂 so simple This js my first year studying c and i feel like its fun!
@oniromanxer22315 жыл бұрын
why i am so dumb i could not understand it clearly.double and float are same .but sometime the value is changed by the float data type.but why dude.how will i know that now float will change the value.
@codebreakthrough5 жыл бұрын
Just don’t use float, ✅
@oniromanxer22315 жыл бұрын
@@codebreakthrough ok thank u dude. You really helped me in my life a lot.
@TheRangeControl5 жыл бұрын
THANK YOU!!!
@hussainshafiq58805 жыл бұрын
What happens if we want to print float number in int data type?
@izvarzone5 жыл бұрын
i think it would be either floored or give error, depends on language.
@londonsystem66224 жыл бұрын
The Best
@ayantika34 жыл бұрын
Before main() I guess it should be void
@giovannialbertosalasatondo30595 жыл бұрын
crap, I have 1/2 of a dog
@neal83175 жыл бұрын
hahahahahah
@izvarzone5 жыл бұрын
can't be, because amount of dogs is an integer type.