Fill Declaration Type K Int 5 K 5 Tried Int Wrong Asked Teacher Gave Response Syntax Decla Q43905047
Fill in the declaration for the type of k.
int i = 5;__ k = i == 5;
I have tried int which is wrong. I asked my teacher and he gavethis response.
The syntax of a declaration is <type> <name><optional initialization>; Here are some things to consider:List the types we’ve encountered so far. int is one, there areothers.The = after the “k” indicates that the optionalinitialization is present, which will work like an assignment. Whatare the two steps to an assignment? In this case, what does thefirst step yield, and what type is that?
Expert Answer
Answer to Fill in the declaration for the type of k. int i = 5; __ k = i == 5; I have tried int which is wrong. I asked my teacher…
OR