Skip to main content

Best Practice For Variable, Constant And Keywords In C

Best Practice For Variable, Constant And Keywords In C

    simply in the programming the alphabets, digits and special symbols when properly combined         form constants, variable and keywords.
    A Constant is an entity that doesn't change, whereas, a variable is an entity that may change. A          keyword is a word that carries special meaning.
     Keywords are the words whose meaning has already been explained to the C compiler.


        Rule for Constructing Integer Constant:

๐Ÿ‘‰in integer constant must have at least one digit.

๐Ÿ‘‰it can be any zero, positive or negative.

๐Ÿ‘‰the allowable range for integer constant is -2147483648 to +2147483647.

 Note: No commas and blanks are allowed and if no sign precedes, it is assumed to be positive.

 

       Rule for Constructing Real Constant:

๐Ÿ‘‰A real constant must have at least one digits.
๐Ÿ‘‰it must have a decimal point.
๐Ÿ‘‰it could be either positive or negative.

        Note: No comma and blanks allow and Default sign is positive

    

        Rule for Constructing Character Constant:

๐Ÿ‘‰A character constant is a single alphabet, a single digit or a single symbol enclosed within a single inverted comma.
๐Ÿ‘‰Example: 'a'.

        Note: both inverted commas should point with the left.

    

Rule for Constructing Variable Names:

A variable name is any combination of alphabets, digits and underscores.
the first character in the variable name must be an alphabet or underscore.
no commas, no blanks or no special symbol other than underscore.

        Note: Some compilers allow variable name whose length could be up to 247 characters.

There are only 32 keywords available in C language.


Comments

Popular posts from this blog

How To Know Best Tools For Social Media Marketing Part 2

  Best Tools For Social Media Marketing Part 2 Today we will tell you about social media marketing tools Part 2. in this article remaining 6 tools, which are helping in a social media campaign. Unsplash: - It is very important to have amazing images while having high-quality textual content. Unsplash provides a database of high-resolution, great images that you can use with your posts, the fact that a good image has its own unique significance cannot be denied. Each image is properly tagged so that you can find the most appropriate image for your post. Marin: - If your agency runs a social media advertising campaign (campaign), then this social media management tool will be useful for you. Marin offers a range of features that promise to increase your ROI by up to 30% compared to native equipment. One of its cool features is called auto-split which helps your audience in the micro-segment. Nimble: - As your customer list grows, a powerful CRM is needed to automate data manag...