Simple syntax rules in C programming. Hope this simple rules will help you in dealing with C programming.
Image by adulau via Flickr
The C programming language is presently used in different applications. It has been developed based on the requirements to write programs that use machine resources in a simpler and more convenient way.
Here are some of the syntax rules in C Programming that must be familiarize:
a. Put semicolon at the end of variable declaration.
b. Commas should be used to separate variables.
c. Variables should be declared first before it can be used.
d. An identifier must not begin with a digit.
e. An identifier must consist only of letters, digits, or underscores.
f. An identifier defined in a C standard library must not be redefined.
g. C reserved words cannot be used as an identifier.
h. In using the scanf function the order of the placeholders must correspond to the order of the variables in the input list.
Image by Extra Ketchup via Flickr
These simple steps or syntax rules are basic which are very helpful and useful when dealing with C Programming.
See also these contents: