🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #1341

Variablen in char[]

#1341
From: Watson
Date: Mon, 22 Jan 1996 11:28
21 lines
813 bytes
Hi,

dass 

f() {
	int x = 10;
	char s[x];
}

nicht geht, ist mir bekannt. Aber ist dies legal:

f() {
	int x = 10;
	char *s = new char[x];
}

??? Antwort bitte - auch - als PM, Thanx,
-- 
*	Greetinx from Watson (sayegh@fokus.gmd.de)
	http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
	signal(SIGSEGV,SIG_IGN);
Technical Details
Message-ID: <310374EE.5322@fokus.gmd.de>
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news
From: Watson <sayegh@fokus.gmd.de>
Newsgroups: de.comp.lang.c++
Subject: Variablen in char[]
Date: Mon, 22 Jan 1996 12:28:46 +0100
Organization: GMD FOKUS - Research Institute for Open Communication Systems
Message-ID: <310374EE.5322@fokus.gmd.de>
NNTP-Posting-Host: pollux.fokus.gmd.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 5.4 sun4m)