Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re^4: If Statement

by Baz (Friar)
on Dec 30, 2003 at 19:50 UTC ( #317758=note: print w/replies, xml ) Need Help??


in reply to Re^4: If Statement
in thread If Statement

naked blocks can be useful in C, because they allow you to declare variables somewhere in a function other than at the start, for example -
void MyFunction() { int a = 10; printf ("%d",a); { int b = 5; printf ("%d",b); } }

The following would be illegal in C -
void MyFunction() { int a = 10; printf ("%d",a); int b = 5; printf ("%d",b); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://317758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2018-12-14 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (64 votes). Check out past polls.

    Notices?