Lesson 3 Part. 1. Hello again! As promised in the previous class, now I speak about variables in C language. First, what’s a variable? The answer is important because it will help us to learn more and use them. Definition: capable of being varied or changed; alterable. (source: www.dictionary.com). That’s the definition that we need! So, there’s some variables types in C language. They’re: Global; Locale; Constant; Volatil e; Inside each one of those cases, we have in resume, 4 type that can be represent in each or all those cases. Below, you’ll can see its names. c har – ‘a’, ‘b’, ‘c’,...; int – 1, 2, 4, 7,...; float – 7.553279, 8.856347,...; double – 9.5896324789632, 10.5885569347799,... ; There’s variations inside each format, but we’ll see in the future. How we can see above, the type data that the variables types represent. Char is for character data, int is for integer, float is for floating point
Comentários
Postar um comentário