What is the output of the following C++ code
#include<iostream>
using namespace std;
int main() {
int x = 10;
int &ptr x;
int &ptr1 - ptr:
cout << ptr1<< end1;
Answers
Answered by
0
error
at the time of printing, *ptr points to the value at address a which is 10. There is no value stored at address 10.
Similar questions
Math,
3 months ago
Hindi,
3 months ago
Math,
3 months ago
Math,
6 months ago
English,
6 months ago
Accountancy,
10 months ago
Social Sciences,
10 months ago