cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
variable initialization
variable initialization
Jul 31, 2010 at 5:15pm UTC
pavankumarthati
(2)
I've a doubt regarding the following syntex.
int x(10);
what the above line actually do..
does it just assign the value to x or anything else happens internally...like constructor involvement (because primitive types also have constructors)....
Thanks in advance....
Jul 31, 2010 at 5:36pm UTC
Athar
(4466)
Does the same as int x=10;
The above is not an assignment either, it also invokes a constructor.
Topic archived. No new replies allowed.