A) struct TwoVals { int a, b; }; int main() { TwoVals.a = 10; TwoVals.b = 20; return 0; } B) #include using namespace std; struct ThreeVals { int a, b, c; void ThreeVals() {a = 1; b = 2; c = 3;} };...



A) struct TwoVals


{


int a, b;


};


int main()


{


TwoVals.a = 10;


TwoVals.b = 20;


return 0;


}


B) #include


using namespace std;


struct ThreeVals


{


int a, b, c;


void ThreeVals()


{a = 1; b = 2; c = 3;}


};


int main()


{


ThreeVals vals;


cout <>


return 0;


}



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here