Question 111

What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
void fun(int*);
int main()
{
int i=2;
fun(&i);
cout<<i;
return 0;
}
void fun(int *i)
{
*i = *i**i;
}
  • Question 112

    What is the output of the program given below?
    #include <iostream>
    using namespace std;
    int main (int argc, const char * argv[])
    {
    float f=?10.501;
    cout<<(int)f;
    }
  • Question 113

    What happens when you attempt to compile and run the following code?
    #include <iostream>
    using namespace std;
    int main()
    {
    float x=3.5,y=1.6;
    int i,j=2;
    i = x + j + y;
    cout << i;
    return 0;
    }
  • Question 114

    What happens when you attempt to compile and run the following code?
    #include <iostream>
    #include <string>
    using namespace std;
    class complex{
    double re;
    double im;
    public:
    complex() : re(1),im(0.4) {}
    bool operator==(complex &t);
    };
    bool complex::operator == (complex &t){
    if((this?>re == t.re) && (this?>im == t.im))
    return true;
    else
    return false;
    }
    int main(){
    complex c1,c2;
    if (c1==c2)
    cout << "OK";
    else {
    cout << "ERROR";
    }
    }
  • Question 115

    What happens when you attempt to compile and run the following code?
    #include <iostream>
    #include <string>
    using namespace std;
    struct Person {
    string name;
    int age;
    };
    class First
    {
    Person *person;
    public:
    First() {person = new Person;
    person?>name = "John";
    person?>age = 30;
    }
    void Print(){
    cout<<person?>name << " "<< person?>age;
    }
    };
    int main()
    {
    First t;
    t.Print();
    }
  • Premium Bundle

    Newest CPA Exam PDF Dumps shared by BraindumpsPass.com for Helping Passing CPA Exam! BraindumpsPass.com now offer the updated CPA exam dumps, the BraindumpsPass.com CPA exam questions have been updated and answers have been corrected get the latest BraindumpsPass.com CPA pdf dumps with Exam Engine here:

    (220 Q&As Dumps, 40%OFF Special Discount: Exam-Tests)
    Other Version
    4338C++Institute.CPA.v2024-03-18.q106
    Latest Upload
    149Huawei.H13-511_V5.5.v2026-12-04.q104
    134CuramSoftware.CS0-004.v2026-12-04.q100
    123Oracle.1Z0-183.v2026-12-04.q24
    124Apple.App-Development-with-Swift-Certified-User.v2026-12-04.q14
    194EMC.D-AV-DY-23.v2026-12-03.q139
    146Cisco.350-101.v2026-12-03.q78
    294Nutanix.NCP-DB.v2026-12-02.q164
    167Huawei.H19-110_V2.0.v2026-12-02.q44
    249EXIN.ITILFNDv4.v2026-12-01.q148
    263VMware.2V0-13.25.v2026-12-01.q134