answersLogoWhite

0


Best Answer

The GWBASIC comma operator is used to format the output of the PRINT command, placing the value to be printed in the next print zone rather than immediately after the previous value. Note that GWBASIC divides each line into zones of 14 spaces each.

The comma operator also has other purposes, such as when filling a string with the same character. For example:

10 X$ = STRING$(10,45)

20 PRINT X$"HELLO WORLD"X$

RUN

----------HELLO WORLD----------

The comma operator is also used to separate the dimensions of a multi-dimensional array, such as the following 2x3 array:

A(2,3)

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the purpose of the comma operator in GWBASIC?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you save a GWBASIC file to a text file?

Save the file with file name in double quotes comma A for ASCII. Example: SAVE "myfile.bas",A


Which operator cannot be overloaded c plus plus?

comma (,) is an example


What are the difference between gwbasic and qbasic?

Difference between QBASIC and GWBASIC?


You want to save Excel numeric data into gwbasic format?

Not sure what you are trying to do. GWBasic is a programming language; Excel is a spreadsheet. If you like, just copy data from Excel to your GWBasic editing program and reformat, as needed.


What is the purpose of a method statement and what is required of the operator?

The purpose of a method statement is that it provides us with the details of what the required operator is supposed to do.


What is the purpose of method statement and what is required of the operator?

The purpose of a method statement is that it provides us with the details of what the required operator is supposed to do.


What is the purpose of the comma sign?

The purpose of a comma is to separate a sentence that has more than one clause that cannot be linked coherently, or to add extra information about a subject. An example is: Cats are furry, they can jump high.


What is full form of gwbasic?

George Washington Basic


How may the double variables temp weight and age be defined on one statement?

Use the comma operator: double temp {1.0}, weight {5.5}, age {21.0};


What are the duties of switchboard operator?

the purpose of a switch board is a connection for


How do you operate GWBasic computer programming language?

Check out the resources below.


What is the difference gwbasic commands and statements?

difference between command and statement