Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2018-07-20 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (438 votes). Check out past polls.

    Notices?