Material Type: Quiz;
Class: Data Structures and Algorithms;
Subject: Electrical & Computer Engineer;
University: Virginia Polytechnic Institute And State University;
Term: Unknown 2011;
Download Solved Quiz 5 - Data Structures and Algorithms | ECE 2574 and more Quizzes Data Structures and Algorithms in PDF only on Docsity!
ECE 2574 QuizS % vam , (Please do not write your SS# or your VT Passport ID# on this paper} 1. Consider the following Class definition and the corresponding main program: #define arr_1 5 class Q24 { int *arr; // array of int int seed; char *name; public: Qz4(char *str, int. i) : name(str), seed(i) { arr = new int[larr_1]; for(int i=0;i ql.set_arr(0, 32); Elewent fe 2 = q2.set arr (1, 56); Elerent BI} 3S w ql.print_arr(); Elencenb # ee 4 ° q2.print_arr(); Glemect 8: 4 ay bone are des broyed fe Qi fy, \ arr ds beagedt fe Ql