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

What is the real function of class - to export data? No, Real purpose of a class isn't to export data. Instead, it's to provide services. Class provides a way to abstract behav

describe how identifiers of different data type are defined using this notaion?

C program to demonstrate call by reference: void disp(int *,int*,int*,int*); void main() {                 int a=2,b=3, sum,mul;                 printf("Enter 1st n

Describe problem with Runtime type identification? A: The run time kind identification comes at cost of performance penalty. Compiler maintains class.

Classes and Objects A class is a vehicle to execute the OOP features in the C++ language. Once a class is declared, an object of that type can be explained. An object is said t

I have an assignment , can I send it

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

write a pseudocode algorithm for a program that accepts a number and prints out its reciprocal(1/n) is required.the program should prevent the user from entering zero by asking t

Explain each of the algorithms in a way that would be understandable to an intelligent person who is not familiar with programming. You should not use any code (or even pseudo code