Intro to Programming - Part 2: Data Types

preview_player
Показать описание
An introduction to datatypes.

Рекомендации по теме
Комментарии
Автор

BASIC! One of the most fun languages, ever!!!

Anti-proton
Автор

I wish you had been around in the early 80's when I was trying to understand basic to program my Commodore 64.

ottomadicly
Автор

A good example of a byte which is not 8 bits. Most common computers (PC's, etc) are 8, but a byte is not always 8 bits.

Thank you for a perfect example!

Anti-proton
Автор

I'm very interested in this, I will be sure to keep following this series. Good job!

MichaelsTechCenter
Автор

String termination has historically been from non printible characters, in most cases, such as a null character \0

OMG! I used \n (new line) and not \0 (a null data byte)!

I will post a retraction immediately. I hate when I mess up something! I explained it correctly, but drew the wrong character!!!


Thank you.

Anti-proton
Автор

whoa, dude. Had no idea you knew how to program, awesome!

rayuri
Автор

Not sure, it would depend on the computer and the compiler.

I would suspect it takes up 8 bits. In assembly, it would be created as a DB (byte) of data.

Anti-proton
Автор

Programming is a major part of what I do for a living. I have been professionally programming since 1998 and I started in 1986, so it's been a long time. I only do nuclear physics as a hobby lol

Anti-proton
Автор

I'm not sure if that is plain ANSI C syntax, to me it looks like C++ or something. C does have the system() and printf(). By looking at it,
it looks like you could get a b text character.

trailkeeper
Автор

One bit addressable? Odd. I've not seen such a thing other than special registers on programmable CPU's. You can easily read/write to one bit, but uniquely addressmbly... I'm not sure I can do that, even in assembly (I love assembly).

Anti-proton
Автор

I did machine code back in the 80's. Assembly code is the next level. A bunch of higher level learners back then like Cobol, Pascal and Fortran snubbed my lower level machine code Understanding. Be careful C+ Programmers.

skywave
Автор

I said C and wrote it in java lol I think in Java, it would seem. I re-posted this in C. lol

It's been a hard month for me, which is why my videos have been so late.

Anti-proton
Автор

Nice video....Itz good to no abt data types bfre dng programming

raggu
Автор

Very understandable explanation... Thank you

vivekrr
Автор

Stupid me, I said ANSI C and wrote it in Java (I use java all day long lol). I am re-posting it in C:

Maybe something in ANSI C like this:
char var = 'a';
printf(++a);
Would I get a b? Perhaps lol It's been years since C :)

Anti-proton
Автор

Thanks a lot, you got some teacher potential :)

yoga_maresh
Автор

Why you containing from right-to-left? 🤔

hajji
Автор

I always seem to forget bits of code in java. Is there any specific technique you use to remember the code?

petercomfort
Автор

NOTE:

Please let me know if this subject was explained well enough. I find that datatypes are actually more complex and difficult to explain than most people might think.

Let me know.


Also, I am posting more videos on the subject over the next few weeks. The goal is to learn to program.

Anti-proton
Автор

Still waiting for part 3 when do you think it will be out?

MichaelsTechCenter