Skip to main content

DIFFERENCE BETWEEN IDENTIFIER AND KEYWORD

Identifier
keyword
Identifiers are names that are given to various program elements, such as variable, function and arrays.
C take some reserved word called keyword, they have predefine meaning in C.
Identifiers consist of letters and digits.
Keyword consist only letter.
Identifier’s first character must be a letter.
Keyword’s all character is letter.
Identifiers Upper and lowercase letter is use.
Keywords are all lowercase.
Upper and lowercase are not equivalent.
Upper and lowercase are also not equivalent.
Like: X, sum_5, _weather etc.
But 4th is not identifier cause identifier first character must a letter.
Like: auto, short, long etc.

Comments

  1. Jakir bhaya it helped me lot in knowing the diff b/w identifier & keyword
    thanks a lot providing it

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Thanks for the explanation, God Bless

    ReplyDelete
  4. That's really massive exposure post and I must admire you in this regard.

    PIC Scheme Singapore

    ReplyDelete
  5. Nice ,
    Thanks Brother...............

    ReplyDelete
  6. First character can be a uppercase, lowercase letter or underscore.

    ReplyDelete
  7. This is nice blog. Contents over here are so informative. For more information in this topic, visit here.. Identifiers and Keywords | Object Oriented Programming (OOP)

    ReplyDelete
  8. In C programming language, the name of variables, functions, labels and user-defined entities are called Identifiers.
    C keywords are the reserved words which are pre-defined in C language. We cannot use keywords as an identifier for variable or function.

    ReplyDelete
  9. This is most informative and also this post most user friendly and super navigation to all posts.
    Best Angular Online Training in Pune, Mumbai, Delhi NCR

    ReplyDelete
  10. Very nice article you have shared nice article thanks for this visit Top Interview Programming questions for geeks .

    ReplyDelete
  11. Get the most out of your Video Surveillance Management Systems with Invigilo AI. Our AI-powered software can help you detect and deter crime, improve security, and reduce costs.

    ReplyDelete

Post a Comment

Give your valuable Comment...

Popular posts from this blog

Object-Oriented Programming and JAVA Programming Language

  Object-Oriented Programming and:   Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, olymorphism, and inheritance. Many modern programming languages now support OOP, at least as an option. JAVA Programming Language: Object-oriented programming is at the core of Java. In fact, all Java programs are object-oriented, this isn’t an option the way that it is in C++, for example. OOP is so integral to Java that you must understand its basic principles before you can write even simple Java programs. Therefore, this chapter begins with a discussion of the theoretical aspects of OOP.

Compilation Process of a C++ Program

Compiling a C++ program involves a number of steps (most of which are transparent to the user): · First, the C++ preprocessor goes over the program text and carries out theinstructions specified by the preprocessor directives (e.g., #include ). The result is a modified program text which no longer contains any directives. · Then, the C++ compiler translates the program code. The compiler may be a true C++ compiler which generates native (assembly or machine) code, or just a translator which translates the code into C. In the latter case, the resulting C code is then passed through a C compiler to produce native object code. In either case, the outcome may be incomplete due to the program referring to library routines which are not defined as a part of the program. For example, Listing 1.1 refers to the << operator which is actually defined in a separate IO library. · Finally, the linker completes the object code by linking it with the object code of any lib...

Read or input form user in Java using BufferedReader

 BufferedReader use to read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.The buffer size may be specified, or the default size may be used. The default is large enough for most purposes. In Java  BufferedReader is a efficient method to read an input. Here given a short example to read a string from user and print it: package palindrome; import java.io.BufferedReader; import java.io.InputStreamReader; public class  inputExample   {     public static void main(String[] args) throws Exception {    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));     String s = new String();       s =br.readLine();     System.out.println(s);     } }