+ 1

Which type of error it will be, if any function or a pointer tries to make changes to the value of const variable?

19th Dec 2016, 5:14 AM
RSx
2 Antworten
0
It can result in unpredictable behavior by the code
19th Dec 2016, 5:29 AM
Doni
Doni - avatar
0
for instance,In C++ const int a=10; Error:______ of read-only variable 'a' it can be the type of changes that is done to the constant variable for example: error: assignment of read-only variable 'a' error: increment of read-only variable 'a'
19th Dec 2016, 5:46 AM
Mohammed Abdul Rahman
Mohammed Abdul Rahman - avatar