Thanks Which of these names can be variable names name 4you

Thanks
Which of these names can be variable names? _name _4you 4him n4galaxy n_birds Name_Lastname _t_h_i_s _t_h_i_s# There is an error in this program. Describe the error and provide a solution. #include int main(K const double pi =3.1415; double radius = 2; std::cout

Solution

Answer 6 :

valid ones are all except \"4him\", \"_t_h_i_s#\" because variable should not startwith number or contain special character #.

Answer 7 :

At the end of main function return statement has to be provided since you have mentioned int as return type. so include \" return 0 \" before curly brace.

Also include \" using namespace std\" at beginning of program

Thanks Which of these names can be variable names? _name _4you 4him n4galaxy n_birds Name_Lastname _t_h_i_s _t_h_i_s# There is an error in this program. Describ

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site