logo

Crowdly

#define main1 main /** Klausimas 1  Ką atspausdins programa? Jeigu programa ne...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

#define main1 main

/** Klausimas 1 

Ką atspausdins programa? Jeigu programa nesikompiliuoja, rašykite ERROR į atsakymo langelį.

*/

    #include <iostream>

    void f(int& a, int b, int& c, int d){

    b = a;  a = c + 1; d = b + 1;

    }

    void g(int a, int& b, int c, int& d){

    a = b + 1;  c = b; d = a + 1;

    }

    int main1(int argc, char** argv){

       int  a = 3;

       int  b = 8;

       int& c = a;

       int& d = b;

       f(c,d + 3,c,b - 1);

       g(b,a,a,d);

       std::cout << a << '*' << b << '*'  << c << '*'  << d;

       return 0;

    }

More questions like this

Want instant access to all verified answers on emokymai.vu.lt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!