Identifier and constant, C/C++ Programming

What are Identifiers and Constants in C++?

Identifier and Constant:

Identifier refers to the name of the variables.   The variable may be a array,  function, primary data type, class, etc. There are rules to name an identifier.

·     variablor Identifier name must start with alphabet or underscore

·     Identifier must be alphabet, number, and underscore. An identifier must not have following character   %,#,<,>, $,etc.

·     Identifier is case sensitive

·     Keyword cannot be an identifier

·     Identifier has not limit to its length


Posted Date: 9/20/2012 7:28:46 AM | Location : United States







Related Discussions:- Identifier and constant, Assignment Help, Ask Question on Identifier and constant, Get Answer, Expert's Help, Identifier and constant Discussions

Write discussion on Identifier and constant
Your posts are moderated
Related Questions
A: They present a degree of freedom in the interface design options. Member functions & friend functions are equally privileged (100% vested). The major difference is that a fri

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

ABC Car Dealership needs your help to update the ordering system. This car dealer is selling four types of vehicles: Sedan, Truck, SUV, and mini Van. And each type of vehicle can h

Program is to swap the two values which are enter by user: Program is to swap the two values which are enter by user through the function with values changed using pointers

The program reads two numbers and a character (operator). If the character is "+" then sum is displayed. If it is "-"then difference is displayed. If it is "*" then product is disp

Define a structure in C++: Write a program a structure in c++ program. void main() {                 struct player                 {                 char name[2

#questionHi, I am looking for help with the assignment, can you help..

A body which has three forces acting on it is in equilibrium. One force is 3N to the North and the other is 4N to the west. What us the magnitude and direction of the third force?

Aim: To implement a program for bank account using static data type. Code: class bank {             static int acc_no;             int acc;             float b

C Program for FUNCTION OF COPY ONE STRING IN OTHER STRING #include stdio.h> #include conio.h> int copy(char a[],char b[]); void main() {           char a[100],b[