|
-
July 4th, 2012, 06:36 AM
#3
Re: question about Function { What is defernce if I type int AA(5) or AA(5);
 Originally Posted by Eri523
The second one, OTOH, is a function declaration, though an invalid one, because there's an int literal inside the parentheses where actually an optional list of parameter types with optional parameter names should be.
The line defines a variable called AA of type int that is initialized to the value 5.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|