Figure 1


Identifying errors in declarations. (a) an invalid declaration; (b) a valid declaration.

(a)  char str = "hello"; 

(b)  char *str = "hello";