Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~91 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for sainisunil05

can someone please let me konw what is the error in this code, not getting expected output. #include<iostream> using namespace std; class myclass { public: int& num; myclass(int number) : num(number){} }; int main(){ int num1= 10000, num2 = 333; myclass mm(num1); myclass nn(num2); cout << mm.num << endl; cout …

Member Avatar for Moschops
0
91