NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024

1. Consider the following program.

#include<iosteam>
using namespace std;
class Checkt{
int x1 = 1;
public:
int x2 = 2;
int get_x1(){ return x1; }
int get_x2(){ return x2; }
};
int main){
Check t;
int a, b;
a = t.x1; //LINE-1
b = t. x2; //LINE-2
a = t .get_x1() ; //LINE-3
b = t. get_x20; //LINE-4
return 0;
}

Which function call/s will generate error/s?

a) LINE-1
b) LINE-2
c) LINE-3
d) LINE-4

Answer :- For Answer Click Here

2.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- For Answer Click Here

3.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- For Answer Click Here

4.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- 

5.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- 

6.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- For Answer Click Here

7.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- 

8.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- 

9.

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2024
Answer :- For Answer Click Here