Site icon Learn Web Development & Programming, Artificial Intelligence, WordPress, Shopify Articles

THE FORMAT OF C

Format of C

Semicolons:

Semicolons are very important in C. They from a statement terminator – they tell the compiler where one statement ends and the next one begins. If you fail to place one after each statement, you will get compilation errors.

Free Format:

The spaces and tabs are ignored and can be easily placed any where.

Case Sensitivity:

Compiler will give the compilation error if it finds “Int”, “INT” or any other variation will in int because C is a case sensitive language. All of the 40 or so C Keywords are in lowercase.

Variables:

Note:- When a variable is declared it is given a type. this type defines its size and how it may be used. Similarly when a constant is specified the compiler gives it a type.

printf and scanf:

Exit mobile version