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 Keyword and AD Auction Use and Work

How Keyword and AD Auction Use and Work: KEYWORD: MAIN PART OF SEM The keyword is the base of the search engine market. Whenever a user searches your product on google, he / she types Keyword only. Ads are shown to him only on the basis of his keyword. Now whenever you start SEM, you must first find the keyword related to the product, Which user can use to search your product. For keyword research you can use Google keyword planner. For example Maan is your tour and travel website. So go to the Google Keyword planner, Type tourist packages there Location - India Language - English Search network - Google On Google keyword planner you will find many related keywords. Who will meet your business. See competition and CPC from there and choose some keywords. Save these keywords in a separate file, they will be useful when creating ads. How does SEM AD AUCTION work? Every time someone searches on Google, ad auction runs. This ad auction checks the keyword that the user has written on G...

How To Know About Social Media Marketing

  WHAT IS SSM? Today there is hardly any person who is not familiar with the term social media social media. Today social media sites like Social Media, Facebook Facebook, Twitter Twitter, Instagram Instagram and WhatsApp Whatsaap have taken almost every person in their growing circle, Most of which people like social media even to like, share and comment. But today the increasing scope of social media has given rise to very economical and highly effective marketing, which is being used by millions of people today. This digital marketing is a part of Digital Marketing. Scope of Social Media Marketing: - Not a single person these days denies the popularity and importance of social media because for the past decade people have been using different social media platforms for different reasons regardless of their age and gender. Without doing. It shows social media and its reach scope to all. Users of Twitter and Facebook have grown very rapidly and grabbed their attention in...

How To Know Best Tools For Social Media Marketing Part 1

How To Know Best Tools For Social Media Marketing Part 1 Today we will tell you about social media marketing tools. Which will help you promote your brand online. This article will be in 2 parts, Part 1 and Part 2, in which 6-6 tools will be explained. Marketing experts know that every media marketing campaign they run on social media is a big and important part. Publicity and details on social media will soon be easily noticed by more and more people. As more and more businesses have become dependent on their online business presence, social media platforms have become a good and big medium for doing business. It has also become a means of building relationships and advertising products and services. . Fortunately, there are many social media tools in place for digital marketing agencies and marketers who are in charge of their clients' online brand presence to help them with their work. Help in advertising Digital marketers give their customers, more effectively, the social me...