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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-28 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found