C Programming Tutorial - 16 - Typecasting

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

the 7 dislikes are jealous college professors

ephraimbenet
Автор

When your phone rang my heart leaped... could it be Rachel McAdams!? Sadly not :(

RAINE____
Автор

I love the fact that I can learn with your tutorials, and at same time you make me laugh all the time with the things you say about your family texting ... the story of the cat .. and so on hahahh

mari.ana_loureiro
Автор

You're a GD life saver. I've learned more from your videos than I did my whole first semester using C. Thank you

kaseybadgett
Автор

It's so cool to see how you have changed since the Java tutorials XD

BenskiGameWorks
Автор

by the way, I remember this from one of your video's when u multiplied the sales and price of pumpkins you got 590 and divided it by 7, but you made the price of pumpkins and integer, if you made it a float, your would have got the same result as the calculator, I checked it.

yousifosman
Автор

the best explanation i've ever seen

unfriendly
Автор

Thanx man ... I'm really get benefit from these videos

Thank u  Thank u   Thank u 

hussainalramadan
Автор

thanks for the videos... i like my professor but problem with professors is they forgot to be students.. thanks bro

pedrinelastronauta
Автор

umm not to be a smartass, but profit is after you subtract the expenses, well nvm that tho, nc video thanks. I'm just starting to study programming and I'm glad i found your site.

mr.earth-_-
Автор

have a nice sales for ur pumpkins bro love ur tutorials

ggwp.indians
Автор

profit is actually determined after expenses are accounted for!

ShoPro
Автор

The main reason why you get 84 is because the program rejects all the decimal values since you're working integers. The point is the compiler does not output 84.25... because you declared your avgProfit as a float. If you declare it as a double and print it with "%lf" (low float) it will work and you will get 6 decimal figures!

manubc
Автор

Another solution is to just

float priceOfPumpkin = 10;

because the input value is a float anyway, since you're dealing with money.

krisdabrowski
Автор

i'm here now!! Yippee~~ i love bucky tutorial 

jamesbrown-yrcz
Автор

Hey Bucky, do you think it's important for a programmer to know how to code without an IDE? They usually ask: Come on, now forget IDE and run this program by yourself crazy bad boy! What do you think about that? Thank you, your tutorials are awesome.

tvhotmilk
Автор

Sir,
 I have one question what to do to remember the code for a long time ?
         I forget code after two days of learning .
      Please help me and Answer my Question .
THANK YOU !!!

tarunyadav
Автор

Is there any reason for me to not declare ALL numerical variables as float?
I mean, since cross-compatibility is an issue, why bother using the less accurate int in the first place?

shohanrahman
Автор

was it necessary to make "sales" and "daysworked" floats as well? My code gave me correct average only with priceOfPumpkin as a float...

PeyoteCowboy
Автор

Why are you not using Ampersand to reference your numbers?

SangoProductions