Here's my code:  #include&lt;stdio.h&gt;  struct parent_structure {     char pe_1 = 'a';  };  struct child_structure {     int ce_1 = 1;     int ce_2 = 2;     int ce_3 = 3;     struct sample_structure     {         int ss_1 = 1 ;         char ss_2 = 'a';     } ce_4 ;     struct parent_structure ce_5; };  int main() {     struct child_structure c_1;     printf("size of element : %d",sizeof(c_1));      return 0; }   ERROR:  test.c:5:15: error: expected ':', ',', ';', '}' or '_attribute_' before '=' token      char pe_1 = 'a';                ^ test.c:10:14: error: expected ':', ',', ';', '}' or '_attribute_' before '=' token      int ce_1 = 1;               ^   PROBLEMS:  * If i initalize value at the time of defining structure   it gives the error shown above.   I was trying this question for a while and if I initialize values to members of structure like at the time of declaration of structure it shows an error.  Please tell me what is wrong with this?
I want to initialize a struct element, split in declaration and initialization. This is what I have:  typedef struct MY_TYPE {   bool flag;   short int value;   double stuff; } MY_TYPE;  void function(void) {   MY_TYPE a;   ...   a = { true, 15, 0.123 } }   Is this the way to declare and initialize a local variable of MY_TYPE in accordance with C programming language standards (C89, C90, C99, C11, etc.)? Or is there anything better or at least working?  Update I ended up having a static initialization element where I set every subelement according to my needs.
Positive euphemism for "harped on" How can I replace harped on with a more positive expression?  The production manager harped on the new quality assurance regulations for nearly an hour. What reputation do you need on Stack Overflow to receive an invite to Careers? How to change default window background color in Windows 10? How do I create a script file for terminal commands? How many ways can $133$ be written as sum of only $1s$ and $2s$ Since last week I have been working on a way, how to sum $1$ and $2$ to have $133$.  So for instance we can have $133$ $1s$ or $61$ $s$2 and one and so on. Looking back to the example: if we sum: $1 + 1... + 1 = 133$ there is only one way. But for the second one there will be $131$ possible ways. And I have to do this for every possible combination. I am stuck with it and I have no idea whatsoever on how to begin.  Any ideas or methods I could use guys? I recently installed Ubuntu 12.10 and it requires a passphrase to boot up (I installed it with an encrypted file system).  Do I have to reinstall to change to a standard unencrypted file system? How can I add a newline in the text of a label in WPF such as the following?  &lt;Label&gt;Lorem    ipsum&lt;/Label&gt; Is there a way to reorganize the fields/attributes in a data extension?  I've added some extra fields that relate to other fields in that extension.   I haven't found a way to regroup those fields. 'bridges' on a PCB copper layer I've come across a design where each pad was connected using 4 'bridges' to the GND copper layar. What stands behind these 'bridges'? Why not make a full copper layer with only solder-mask defining the pads? "Never say die?" What's the deal with this idiom? I know what it means, but cannot wrap my head around its grammar structure. The sentence structure of     "Never say die"   looks like that of     "Never admit defeat"   but it does not make the same grammatical+semantical sense.  Is it an archaic use? Is it a contraction of a longer phrase? Was it originally misspoken by someone of note and survived memetically? What are its roots?  Edit: Well, the comments made me realize that I worded my question poorly. I'm not saying I think this phrase is ungrammatical. I'm asking how the heck "saying 'die'" came to mean what it means. Ideal correspondence I'm confusing the ideal correspondence theorem. Is the following  right?  Ideal correspondence: Let $f:A \to B$ be a ring homomorphism. Then there is a one-to-one order-preserving correspondence between ideals of $f(A)$ and ideals of $A$ which contain $\ker(f)$ by $\alpha \mapsto f(\alpha)$ (conversely $\beta \mapsto f^{-1}(\beta)$), and prime ideals correspond to prime ideals, and maximal ideals correspond to maximal ideals. How do I download a YouTube video? How can I make schematic of this board? How long can I store a food in the pantry, refrigerator, or freezer? Python — How can I find the square matrix of a lower triangular numpy matrix? (with a symmetrical upper triangle) I am curious about the proof of these two integrations. It would be great if you could point me in the right direction : $ \int{e^{ax}\cos({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\cos(bx)+b\sin(bx)] + C $ &amp; $ \int{e^{ax}\sin({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\sin(bx)-b\cos(bx)] + C $ Will free-fall object into black hole exceed speed of light $c$ before hitting black hole surface? In Newtonian mechanics, if we throw an object in against direction of gravity with speed $v$ and it achieve max height of $h$. Now if we allow object to fall from that height $h$, it will eventually attain speed $v$ when it reach position where we launch it.   Now applying same idea to a black hole in general relativity. Speed require to escape black hole gravity is greater than $c$, so if we throw something into black hole with almost the speed of light, the object speed will exceed speed of light $c$ before hitting black hole surface! How relativity explain this? Can space-time curvature reduce speed of this freely falling object from attaining speed of light? I am asked to solve $$u_x+u_y=1$$ If is was homogeneous i.e., $u_x+u_y$ the answer would be $u(x,y)=f(y-x)$ where $f$ is an arbitrary function. I have found the following set of solutions: $$u(x,y)=\lambda x +(1-\lambda)y$$ where $\lambda$ is an arbitrary constant(real or imaginary). I just have no idea what method other then trial and error would have lead me here. Any ideas? Thanks! Moment of inertia of a cylinder about its base I've tried to find the moment of inertia of a cylinder rotating about an axis parallel to its base (i.e about the 'End diameter') as one can see  . But when I checked my results with different references ,I've found that it's incorrect!.I need a help to figure out where I did it wrong. since $$I=\int\limits x^2.dm$$ $$dm = \rho.dv$$ where $$dv= r.d\theta . dr .dh$$ &amp; $$\rho=\frac{M}{\pi R^2 H}$$ $M$:cylinder total mass. $H$:total height of cylinder. $R$:the radius of the cylinder. The distance of each infinitesimal element from the axis of rotation would be : $$\sqrt{r^2+h^2}$$ Therfore, $$I= \frac{2M}{ R^2 H}\int\limits_{0}^{R} \int\limits_{0}^{H}\, r(r^2+h^2)dh\,dr$$ and this gives a result of : $$\frac{M~H^2}{3}+\frac{M~R^2}{2}$$ Which is obviously wrong since the second term should be multiplied by a factor of $1/2$. How to view CD key for a Steam game? I have purchased a game on Steam and can not find out the details of the file or purchase. How does one find their CD Key from a game purchased in Steam?