Home

Learn Programming & Prepare for NPTEL Exams... Swayam Solver is your one-stop destination for NPTEL exam preparation.

Programming in Modern C++ | Week 2 : Programming Assignments | Jan-2022 | NPTEL

 Programming in Modern C++


Due on 2022-02-10, 23:59 IST

---------------------------------------------
Week 2 : Programming Assignment 1
---------------------------------------------

int test(int n){		//LINE-1





    return (n-1);			//LINE-2



--------------------------------------------
Week 2 : Programming Assignment 2
--------------------------------------------



#define CUBE(X) ((X)*(X))       //LINE-1



--------------------------------------------
Week 2 : Programming Assignment 3
--------------------------------------------




complex operator* (struct complex& c1, struct complex& c2){	//LINE-1



    struct complex c = c1*c2;      //LINE-2





----------------The End---------------------

No comments:

Post a Comment

Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.