Looking for Об'єктно-орієнтоване програмування (1 курс КН) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (1 курс КН) at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
int a; // в глобальному просторі
void f () {extern int a; a = 8; }
і в функції main() виконується
a = 3; f (); cout << a;
то якою буде результат?
(C++)
struct {
char fio [30];
unsigned char date: 4;
unsigned char code: 4;
};
(C++)
Який результат його роботи?
#include <conio.h> #include <iostream.h>int main () {enum {t, x, y, z, w}; cout << t + x + y + z + w;getch ();
return 0;} (C++) Error moodle database input: код вірний, його результат 10(C++)
char foo (char my_ch)
{
char ch = my_ch;
static int flag = 1;
if (flag) {
char p;
p = ch;
ch = ch + 1;
}
.....
return ch;
}
(C++)
(C++)
В змінної типу unsigned short int можна зберігати число
(C++)
(C++)
(C++)
#include <stdio.h>
int a, b, c, d;
void f (int a, int & c, int & d)
{
int b;
a = 5; c = 7; b = 9;
}
int main ()
{
a = 1; c = 1; b = 1;
f (b, a, c);
printf ( "% d |% d |% d", a, c, b);
return 0;
}
(C++)