Data types : Integer (int) , character (char), real (float)
Eg of valid identifier : x , Abc, EFG
(this depends on the programming language u r using, some maybe case dependant)
2007-09-25 23:15:27
·
answer #1
·
answered by Anonymous
·
0⤊
0⤋
int - integer
string - a text string
float - a decimal
the rules for valid identifier names are as follows:
*
The first character of the identifier must be a letter of the alphabet (upper or lowercase) or an underscore ('_').
*
The rest of the identifier name can consist of letters (upper or lowercase), underscores ('_') or digits (0-9).
*
Identifier names are case-sensitive. For example, myname and myName are not the same. Note the lowercase n in the former and the uppercase N in te latter.
*
Examples of valid identifier names are i, __my_name, name_23 and a1b2_c3.
*
Examples of invalid identifier names are 2things, this is spaced out and my-name.
2007-09-25 22:37:03
·
answer #2
·
answered by th3fish 3
·
0⤊
0⤋
Isn't it sweet when we, the dummy yahoo posters, get the opportunity to go back to school and work on a homework we will never get appraisal (or blame for that matter) for? :)
You didn't say your programming language pumpkin, that allows me to use a wider scale of possibilities ;)
char, varchar, int, small int, med int, big int, integer, bool, boolean, float, double, long double, text, string, ...
The first character of the identifier must be a letter of the alphabet (upper or lowercase) or an underscore ('_').
The rest of the identifier name can consist of letters (upper or lowercase), underscores ('_') or digits (0-9).
Identifier names are case-sensitive.
And you can't use predefined names, which are already used for other purpose, like asm, auto, bool, break, case, catch, char, class, const, continue, default, delete, while, etc
2007-09-25 22:51:31
·
answer #3
·
answered by Searcher 3
·
0⤊
0⤋
This is a realllly basic question....a kind of question you will run into in the first week of a programing class not matter what language.
I suggest you picking up your book for the class you are taking and look up the answer yourself. If this type of questions has gotten you at a loss for an answer you may want to consider sitting down with your instructor for extra help or dropping the class all together.
2007-09-26 05:10:42
·
answer #4
·
answered by ckcool192000 3
·
0⤊
0⤋
in c language use this syntax
int num // int is the datatype for integer and num is the identifier
float a25h // float is the datatype for real No. and a25h is a valid identifier
char name // char is the datatype of charachter and name is the identifier
same statement can be written in vb as
dim num as integer
dim a25h as double
dim name as string
2007-09-26 00:27:00
·
answer #5
·
answered by Tasneem K 1
·
0⤊
0⤋
If you can't answer this question, CHANGE COURSE!
Go for gardening, NOT programming. You'll NEVER be good at it.
2007-09-26 00:56:53
·
answer #6
·
answered by just "JR" 7
·
0⤊
0⤋