Programming Lecture 1. What is the programming? to Data type of C

in kr •  7 years ago  (edited)

TIPS강좌배너.png
Last thurusday I go to Microsoft of Korea branch for my lecture.
The instructor is Seong-yeop Kim who is director of tipssoft. He is microsoft MVP of c++ programming.

I learn about what is programming and data type of C language.

Preparation Material : structuring C Development environment.

First, What is the programming??

We must know algorithm. Program can define expresssion of the plan, and file created in a language that (your computer understands what the computer will do)-this is algorithm.

So programming is defined to make program.

But if we write the program for C, we need the translator for machine language(composed 0 or 1).
The translator is named compiler. It translate the programming language for machine language.

Similarly, We can fine interpreter. for example python, HTML, Javascript.....all of these are interpreting language.

The difference between compiler and interpreter is translating into machine language at once or one line into machine language.

                  Compiler vs Interpreter

Second, Introduce about C language.

It was make by Dennis rich in 1972. It has been used to develop UNIX which is OS.

The characteristic of C is four representative examples. First, it is structured language. Second, it gains high portability. Third, it is good at expansion and various expression. Fourth, It is high productivity.

Programming language need a few definition.
input grammar : write the information you want
print(output) grammar : display the information you want
constant : Limited input destination
operator : processing the operating function
variable : The space which memory the input value and operating result
conditional grammar : process according to condition
Iterative grammar : the iterative behavior until you want to stop it.

Third, the sentence structure of the C language.

(Your operate); <-- semicolon : finish point about unit of processing.
If you want to order 2 operation. You use the { }.
ex.
if(1)
{
printf("abc");
printf("def");
}

and If you want to remain the remark. use the /* (contents) */
ex.
/
conditional grammar */
if(1)
{
printf("abc");
printf("def");
}

Four, Data type

Do you know bit? bit is base unit of memory. it memorize 2 statement about 0 or 1.
Byte is unit of memory structured 8-bit.
we need the sign about number, so developers make the sign-bit. It is leftmost bit called the highest bit.

If so, why we learn the data type??
the answer is simple. we make the better program about smaller volume and faster processing.

--Data type--

char : 1-byte space, express the integer number. But it used to express the character because ASCII code. -128~127
(p.s the concept of ASCII https://en.wikipedia.org/wiki/ASCII)
unsigned char : there are no minus. 0~256
short int : 2-byte space. that use to express the small value. -32,768~32767(=2^15-1)
unsigned short int : 0~2^16
long int : 4-byte space. that use to express the integer number generally. so that almost use just (int). -2^31~2^31-1
unsigned int : 0~2^32
float : 4-byte space. that use to express the real number. but it isn't generally use, because it has error very often.
double : 8-byte space. this is fewer errors than float data type. so this is used generally about real number.

This is First lecture about Tips. I would appreciate your vote if it helped. Have a nice study.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Woff, woff!

Hello @pentalvega, Nice to meet you!

I'm a guide dog living in KR community. I can see that you want to contribute to KR community and communicate with other Korean Steemians. I really appreciate it and I'd be more than happy to help.

KR tag is used mainly by Koreans, but we give warm welcome to anyone who wish to use it. I'm here to give you some advice so that your post can be viewed by many more Koreans. I'm a guide dog after all and that's what I do!

Tips:

  • If you're not comfortable to write in Korean, I highly recommend you write your post in English rather than using Google Translate.
    Unfortunately, Google Translate is terrible at translating English into Korean. You may think you wrote in perfect Korean, but what KR Steemians read is gibberish. Sorry, even Koreans can't understand your post written in Google-Translated Korean.
  • So, here's what might happen afterward. Your Google-Translated post might be mistaken as a spam so that whales could downvote your post. Yikes! I hope that wouldn't happen to you.
  • If your post is not relevant to Korea, not even vaguely, but you still use KR tag, Whales could think it as a spam and downvote your post. Double yikes!
  • If your post is somebody else's work(that is, plagiarism), then you'll definitely get downvotes.
  • If you keep abusing tags, you may be considered as a spammer. It may result to put you into the blacklist. Oops!

I sincerely hope that you enjoy Steemit without getting downvotes. Because Steemit is a wonderful place. See? Korean Steemians are kind enough to raise a guide dog(that's me) to help you!

Woff, woff! 🐶

넹 ㅎㅎㅎㅎㅎ

kr-guide!

Great job putting a lot of effort into this! However, don't forget to add another banner at the end of your blog!!
After reading your blog, I noticed that there are some errors and parts where it would look better if you give it some extra touches.
First of all, if we look at the comments line, you wrote that /* / or / / is the appropriate grammar. However, for using comments, I believe that // or / */ is the correct grammar.
Also, when you explain each integer data types, it would be much better if you show examples into each and every one of them because it would help you study and memorize it.
When you try to explain ASCII code, it would also help you if you try to put it in your own words instead of just adding the link to it.
Overall, great job!! Looking forward to what you write next!

oh sry~ that is steem's platform error. I wrote in my post /* / or // but the post was written / / or / */ by steem's platform. I will warn about small errors.