F
fctk
hello,
i have some questions.
1) do constant expressions include string literals? for example, is
"hello, world" a constant expression?
2) int i = 0; is the equal sign the assignment operator or is it only a
symbol? (i think the last one is correct)
3) is an array a variable? for example:
int i = 0; /* `i' is a variable*/
char *cPtr; /* `cPtr' is a variable */
int a[10]; /* is `a' a variable? */
K&R (2ed) says (paragraph 5.3; page 99): "[...] the value of a variable
[...] of type array [...]".
so i think an array is a variable.
thanks
i have some questions.
1) do constant expressions include string literals? for example, is
"hello, world" a constant expression?
2) int i = 0; is the equal sign the assignment operator or is it only a
symbol? (i think the last one is correct)
3) is an array a variable? for example:
int i = 0; /* `i' is a variable*/
char *cPtr; /* `cPtr' is a variable */
int a[10]; /* is `a' a variable? */
K&R (2ed) says (paragraph 5.3; page 99): "[...] the value of a variable
[...] of type array [...]".
so i think an array is a variable.
thanks