3. Please help C questions 9. Consider the following variable declarations int i
ID: 654575 • Letter: 3
Question
3. Please help C questions
9. Consider the following variable declarations int i,j,k; double DC10] [7]; char c Which of the following "C Assignment Statements" would give a syntax error? (a) c 3.14 (b) 'a'; (c) C 3; (d) C- 3. (e) none that is to say that all are syntactically correct given the declarations above. 10. Consider the following variable declarations int i,j,k; double D[10] [7]; char c; Which of the following "C Assignment Statements" would give a syntax error (a) i 3.14 (b) i 'a'; (c) i 3; (d) i 3. (e) none that is to say that all are syntactically correct given the declarations above.Explanation / Answer
Type conversion is the technique that converts a data type into another data type. If a type of value is assigned to another type of variable, the value will be converted into a value that can store in that variable. Type conversion can be done explicitly or implicitly. For example, consider int a=3.5. Here, float type value 3.5 will be converted into integer type value 3 and stored in a.
So, the assignments never raise errors and they are syntactically correct.
Thus, the correct option for both the questions is (e)