Which one of the following is the correct way of declaring and initializing a variable, x with the value 7?
int x
x=7
x=7
int x=7
declare x=7
Boost your performance with adaptive practice tests
Practice every concept in the syllabus
Compare your speed and accuracy with your peers
Download the app and practice on the go