logo

Crowdly

Browser

Add to Chrome

Programiranje II

Looking for Programiranje II test answers and solutions? Browse our comprehensive collection of verified answers for Programiranje II at ucilnica-fe.uni-lj.si.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Kakšne vrednosti bosta imeli spremenljivki y in z, ko se izvede naslednja koda?

int x = 11, y = 10, z = 10;

(x != 0) && (y = 10 / x) && (z = 10 / y);

0%
0%
0%
0%
View this question

Spremenljivka x je tipa int in ima na začetku vrednost 42. Kakšno vrednost bo imela spremenljivka x, ko se izvede naslednji stavek?

x < 0 || (x = 10) || (x = 20);

0%
0%
0%
0%
View this question

Kakšna je vrednost izraza (x < 10) && (y = 0), če vemo, da sta x in y spremenljivki tipa int?

0%
0%
0%
0%
View this question

Spremenljivka x je tipa int in ima vrednost 10. Kakšna je vrednost izraza 3 * x + x *= 2?

0%
0%
0%
0%
View this question
Kakšna je vrednost izraza 0 < x < 10, če vemo, da je x spremenljivka tipa int?

0%
0%
0%
0%
View this question

Kakšna je vrednost izraza -7%5?

0%
0%
0%
0%
View this question

Podana je koda

int x = 1;

printf("%d %d %d", x++, x, x++);

Kaj se bo izpisalo na standardnem izhodu, ko se koda izvede?

0%
0%
0%
0%
View this question

Podana je naslednja koda:

stej();

stej();

printf("%d", stej());

Kakšna mora biti definicija funkcije stej, da bo stavek printf na standardni izhod izpisal vrednost 3?

0%
0%
0%
0%
View this question

Podan je naslednji program:

int x = 5;

void f(int y) {

    printf("%d ", x + y);

}

int main(void) {

    int x = 2;

    if (x < 10) {

        int x = 10;

        f(++x);

        printf("%d ", x);

    }

    printf("%d ", x);

    return 0;

}

Kaj bo program izpisal na standardni izhod?

View this question

Podana je naslednja koda:

unsigned int x = 7, *k;

k = &x;

printf("%u %u", x, *k);

Kaj izpiše stavek printf, ko se koda izvede?

0%
0%
0%
0%
View this question

Want instant access to all verified answers on ucilnica-fe.uni-lj.si?

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

Browser

Add to Chrome