Question: What input would make lead the program ( myProgram 1 ) to output Pass? [ 5 points ] int main ( ) { std::string languages

What input would make lead the program (myProgram1) to output "Pass"? [5
points]
int main(){
std::string languages[]={"English", "Italian", "German", "French", "C
std::string *ptr1,*ptr2,*ptr3;
int i;
ptr1= languages;
ptr1+=2;
ptr2= &languages [4];
ptr3= ptr2--;
std:: cout *ptr1 std::endl;
if(ptr3== ptr2){
std::cout "PASS" std::endl;
} else {
std:: cout *ptr3 std::endl;
}
std::cout *ptr2 std::endl;
What input would make lead the program (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!