Q:

Explain C tokens. What is the difference between Keywords And Identifiers?

0

Explain C tokens. What is the difference between Keywords And Identifiers?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

keywords:

 the 32 keywords that, combined with the formal C syntax, form C89, the

C subset of C++. All are, of course, also keywords in C++.

In addition, many compilers have added several keywords that better exploit their

operating environment. For example, several compilers include keywords to manage

the memory organization of the 8086 family of processors, to support inter-language

programming, and to access interrupts. Here is a list of some commonly used extended keywords:

asm _cs _ds _es

_ss cdecl far huge

interrupt near pascal

auto double int struct

break else long switch

case enum register typedef

char extern return union

const float short unsigned

continue for signed void

default goto sizeof volatile

do if static while

Notice that all of the keywords are lowercase. C/C++ is case-sensitive. Thus, in

a C/C++ program, uppercase and lowercase are different. This means that else is a

keyword, while ELSE is not.

identifiers:

In C the names of variables, functions, labels, and various other user-defined

objects are called identifiers. These identifiers can vary from one to several characters.The first character must be a letter or an underscore, and subsequent characters must

be either letters, digits, or underscores.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now