Should i learn C ? Why not!

ikhlas firlana
1 min readDec 2, 2021

Since yesterday, i am a newbie for programming (again). I learn syntax of C is not really people call is easiest to learn. Why? Because curiosity the more you want know programming language more you want know the basic, right.

After i peek the C language, the differrence is you know the machine works and how they use. In Javascript, i initiate variable just using “let” like this.

let x;

But, after explaination about allocation in C, variable you use is hold of multiple char. If you just use char for string variable and you must set the maximum before you use it like this.

char x[6];

How about set the value?
well you just set variable to some “string” in Javascript.

x = "string";

But not for C, if you want set value or manipulation string you need string.sh library or utilities cheatsheet. But how we set the x if not use it.

x[0] = 's';
x[1] = 't';
x[2] = 'r';
x[3] = 'i';
x[4] = 'n';
x[5] = 'g';

It is because you must set each array with char. That its for today.

--

--