English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It is all about computer programming.

2006-10-02 00:59:57 · 6 answers · asked by annissahticsay 1 in Computers & Internet Programming & Design

6 answers

SCOPE of a variable means something quite specific within a program. It is the area within the program where the variable is accessible. For example if a variable is declared within a function, the scope of the variable is that function and the variable cannot be accessed by code outside that function.

The limitations of variables are defined by the programming language. Check for your language in a manual or on Internet.

2006-10-02 02:06:12 · answer #1 · answered by Henry 5 · 0 0

In delphi (pascal) it's like this:

String := 'anything including numbers 12u92382 etc but it has a length limit';
Strings also have a maximum size. In delphi you have WideStrings which can be used if the size/length of a string is exceeded.

A double I beleive is a number which uses the decimal point - such as 123.45
I don't know the limitations of a double.

Integer is a whole number - EG 1 OR 2 OR 3 etc
Integers can go into the thousands.

Float I have no idea.
Character I also not sure about.


You should bear in mind that these limitations can be different according to the language you program in.

J

2006-10-02 08:45:14 · answer #2 · answered by J 3 · 0 0

in terms of VB6:

The scope would be where the variable was defined and whether is was defined as private or public.

double / 8 bytes / -1.79769313486231E308 to
-4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values

string / variable / 10 bytes + string length / 0 to approximately 2 billion

string / fixed / Length of string / 1 to approximately 65,400

float / 8 bytes / -922,337,203,685,477.5808 to 922,337,203,685,477.5807

integer / 2 bytes / -32,768 to 32,767

character / 1 byte / 0 to 255

2006-10-02 08:18:11 · answer #3 · answered by timc_fla 5 · 0 0

????
I don't understand the question.
It doesn't make sense to talk about limitations of different data types. You allocate memory with the data types that your program needs.
As far as scope goes, you have 2: Global and local scope. I think you need to read a book about this; It will all be explained there.

2006-10-02 08:12:23 · answer #4 · answered by Balk 6 · 0 1

"It is all about computer programming" - you think so?!

Go to www.google.com and search for "data types" or something. This is very basic reference information and can be found in so many places online already that you really don't need to be asking...

Rawlyn.

2006-10-02 08:13:28 · answer #5 · answered by Anonymous · 0 1

look at your book or search google.

2006-10-02 08:09:57 · answer #6 · answered by iyiogrenci 6 · 0 1

fedest.com, questions and answers