The syntax for C requires you to write the type of the variable you want to declare before the variable's name.

Unlike in languages like Python, R, Octave/Matlab, etc., which are dynamically typed languages, the C language is a statically typed language. From a practical point of view, this means in C we have to declare, up front, the type of every variable we use. In languages like Python we can do crazy stuff like this:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy