Definiton of variables within a block?

F

Fatih Gedikli

Hi,

is it "allowed" to define variables after a statement (not at the beginning of
a block) or is this not standard-conform?

thx
 
T

Tor Rustad

Fatih Gedikli said:
Hi,

is it "allowed" to define variables after a statement (not at the beginning of
a block) or is this not standard-conform?

Allowed in C99, but not in C89.
 
W

Walter Roberson

:is it "allowed" to define variables after a statement (not at the beginning of
:a block)

Yes in C99

:eek:r is this not standard-conform?

No in C89.


This is one of the items that changed between C89 and C99.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top