Question: 1 . What is wong in the following code? bit P 1 4 ; unsigned char var = 6 xAG; int recValues [ i 5
What is wong in the following code?
bit P;
unsigned char var xAG;
int recValuesi;
float myFloat ;
The datatype sbit should be used to declare the variable P instead of the
datatype bit.
The array rec Values needs to be initialized with zeros.
The float variable myFloat is invalid because it uses the keyword float
which is reserved for the C programming language compilers.
The variable unsigned char var should not hold a hexadecimal value.
All of the above are problems.
None of the above is wrong.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
