Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
History of the question mark
#1
Does anyone know the history of how it came to be that "?" became a short form for "PRINT". Has it always been built into the bones of QBasic. Could have been ported over from some other language. Just curious.
Reply
#2
I do know that it works in SmallBASIC but not in Just Basic (nor LB).
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#3
I do not know an answer, but it would be funny to have more like this. Maybe | for input and § for screen.
"Give a man a program and he will be happy for a day. Teach him to program and he will be happy for the rest of his life."
Reply
#4
The "?" sign for "Print" goes back to GW-Basic. If you used the program editor you could use it to output: "?2 + 2".
The idea behind is probably that "?"  stands for the question: "How much is" 2 + 2.
Reply
#5
The question mark (?) as a shortcut for the PRINT statement was first introduced in Microsoft BASIC. This feature became widely recognized and used in various implementations of Microsoft BASIC, including:
  1. Altair BASIC (1975): One of the earliest versions of Microsoft BASIC, where this shortcut likely appeared.
  2. BASIC-80: Also known as MBASIC, used on the CP/M operating system.
  3. Commodore BASIC (1977): Based on Microsoft BASIC, used in Commodore computers like the PET, VIC-20, and Commodore 64.
The use of the question mark as a shorthand for the PRINT statement was popularized through these versions of BASIC, making it a common feature in many early personal computers that used Microsoft BASIC derivatives.

... or at least that's what ChatGPT thinks.
Reply
#6
I knew I'd seen this before: https://retrocomputing.stackexchange.com...iate-print

Answers in the BASIC Programming group suggest "?" for PRINT was introduced in Microsoft Level-2 BASIC, while Microsoft Level-1 BASIC had the "P" abbreviation for PRINT.
Reply
#7
It would have had to have been one or two programmers who came up with it. I wonder if Kemeny or Kurtzas would know (or have tracked ) their Basic language evolution over time?
Reply
#8
In True Basic. The exclamation point begins remark. Not apostrophe. Rolleyes

I got this from a book: Radio Shack TRS-80 Model I allowed abbreviation of keywords. But also had to use period. Like "P." for "PRINT". "I." for "INPUT". "GOS." for "GOSUB" because "G." already taken for "GOTO".
Reply
#9
You know what a better shortcut isPRINT... oops, ? It's the one to SCREEN 0. What is it? Nothing! SCREEN 0 is the default screen! Who made it that way? God. He did so by sneaking back into the office on the 7th day.

Pete Big Grin

- You can't do everything in SCREEN 0, but since you can't do everything anyway, it's perfect!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  a question about OpenGL in QB64pe: TempodiBasic 11 1,802 11-22-2025, 05:47 PM
Last Post: TempodiBasic
  Question about load pictures Jim_001 4 510 10-22-2025, 06:19 AM
Last Post: Unseen Machine
  Test to post a new Thread + question 32 or 64 bit Rudy M 2 538 09-09-2025, 04:10 PM
Last Post: Rudy M
  Quick Question (I hope) bplus 3 697 02-26-2025, 01:14 AM
Last Post: SMcNeill
  Mix mode input of a binary open file Question! doppler 5 1,463 11-28-2024, 03:06 PM
Last Post: Petr

Forum Jump:


Users browsing this thread: 1 Guest(s)