howdy
i'm a python/java guy who's going to attempt to pick up C/C++, and so far it's pretty straightforward. I do have one question regarding structures...
in all the examples i've seen, when a structure is created, it never initializes the variables to values, it just declares the variable and it's type. is it possible to initialize a variable within a structure when the structure is created?
here's an example of what i mean:
will that work? (i'm at work and can't test it, i was just curious)Code:struct ink { char name[60] = "inkedmn"; int age; };
thanks!