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  

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

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 Databases Questions!