Question: Which of the following variable declaration statements are valid? int distance = 5 3 k m ; / / # 1 int x = 2

Which of the following variable declaration statements are valid?
int distance =53km; // #1
int x=250; // #2
int 2=two; // #3
A. Only #1
B. Only #2
C. Only #3
D. Two of them are valid
E. All of them are valid
Which of the following variable declaration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!