Question: Run this code, whats wrong with the Output? Explain the reason and how we can correct it? #include using namespace std; void main() {
Run this code, whats wrong with the Output? Explain the reason and how we can correct it? #include using namespace std; void main() { int I = 5; int * i_ptr = &1; cout < < "Value of I: " < < *i_ptr < < "Address of I: < < i ptr < < endl; char c = 'A'; char c_ptr = &c; cout < < "Value of I: < < *c_ptr < < "Address of I: H H H
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
