473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Etymology of subscript in C ( OT)

mdh
Does anyone know the origin of the use of subscript in the language?
The oxford dictionary defines it "Computing a symbol (notionally
written as a subscript but in practice usually not) used in a program,
alone or with others, to specify one of the elements of an array"
Is this indeed how arrays were written?

Sep 14 '07 #1
5 1747
In article <11**********************@o80g2000hse.googlegroups .com>,
mdh <md**@comcast.netwrote:
>Does anyone know the origin of the use of subscript in the language?
The oxford dictionary defines it "Computing a symbol (notionally
written as a subscript but in practice usually not) used in a program,
alone or with others, to specify one of the elements of an array"
Is this indeed how arrays were written?
It just corresponds to the usual mathematical notation of using
subscripted variables. They're inconvenient to type on computers (and
were more inconvenient in the past) so bracket notations are used
instead.

-- Richard

--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Sep 14 '07 #2
mdh said:
Does anyone know the origin of the use of subscript in the language?
The oxford dictionary defines it "Computing a symbol (notionally
written as a subscript but in practice usually not) used in a program,
alone or with others, to specify one of the elements of an array"
Is this indeed how arrays were written?
Here is an excerpt from what is probably John von Neumann's first
computer program:

http://www.cpax.org.uk/scratch/vnp1.png

I've circled the most obviously relevant bits in red.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 14 '07 #3
mdh
On Sep 14, 9:01 am, rich...@cogsci.ed.ac.uk (Richard Tobin) wrote:
>
It just corresponds to the usual mathematical notation of using
subscripted variables. They're inconvenient to type on computers (and
were more inconvenient in the past) so bracket notations are used
instead.

Thanks

Sep 14 '07 #4
mdh
On Sep 14, 9:38 am, Richard Heathfield <r...@see.sig.invalidwrote:
>
Here is an excerpt from what is probably John von Neumann's first
computer program:

http://www.cpax.org.uk/scratch/vnp1.png

I've circled the most obviously relevant bits in red.

Thank you Richard...

Sep 14 '07 #5
In article <4M******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
>Here is an excerpt from what is probably John von Neumann's first
computer program:

http://www.cpax.org.uk/scratch/vnp1.png
I see that unreadable code is nothing new.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Sep 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Steve | last post by:
Hi, I hope someone can help. I have a class called cField, and another class called cFieldList. cFieldList contains a std::vector of cFields called myvec I've overloaded the subscript...
5
by: Steve | last post by:
Hi, I have a class called cList as so: template<class T> class cList { // base class for Lists private: protected: vector<T> tListOf; // field list container public: void Add(const T& t)...
8
by: VB Programmer | last post by:
I'm acutally using VB6, not VB.NET, but I couldn't find the newsgroup for version 6.... I need help for something that should be simple. I keep getting a "subscript out of range" error and...
10
by: olson_ord | last post by:
Hi, I am not exactly new to C++, but I have never done operator overloading before. I have some old code that tries to implement a Shift Register - but I cannot seem to get it to work. Here's a...
51
by: Pedro Graca | last post by:
I run into a strange warning (for me) today (I was trying to improve the score of the UVA #10018 Programming Challenge). $ gcc -W -Wall -std=c89 -pedantic -O2 10018-clc.c -o 10018-clc...
6
by: josh | last post by:
Hi I've a dubt! when we have overloaded functions the compiler chooses the right being based on the argument lists...but when we have two subscript overloaded functions it resolves them being...
3
by: uche | last post by:
Please give me some feed back on this issue: Here is the complier error: hexdmp.cpp: In function `void output(unsigned char, int, bool&)': hexdmp.cpp:133: error: invalid types `unsigned char'...
13
by: Ivan | last post by:
Hi, What is the best syntax to use a char to index into an array. /////////////////////////////////// For example int data; data = 1;
19
by: C++Liliput | last post by:
I have a custom String class that contains an embedded char* member. The copy constructor, assignment operator etc. are all correctly defined. I need to create a map of my string (say a class...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.