This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
ch03-places-to-put-things [2017/08/24 02:02] mithat [Variable initialization] |
ch03-places-to-put-things [2017/08/24 02:02] mithat [Multiple declarations] |
||
---|---|---|---|
Line 380: | Line 380: | ||
char firstInitial, secondInitial; | char firstInitial, secondInitial; | ||
</code> | </code> | ||
- | declare two variables---''%%firstInitial%%'' and ''%%secondInitial%%''---which are both character types. Notice the comma between the two variable names. | + | declare two variables, ''%%firstInitial%%'' and ''%%secondInitial%%'', which are both character types. Notice the comma between the two variable names. |
You can even combine variable initialization and multiple declaration in the same statement: | You can even combine variable initialization and multiple declaration in the same statement: |