# Set display properties for a user
sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/
sudo dpkg-reconfigure gdm3
# reboot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для чего нужны мьютексы? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int arr[5] = {}; | |
Как передать массив в функцию в качестве аргумента? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Что делает функция realloc()? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int* p1 = malloc(5 * sizeof(int)); | |
int** p2 = &p1; | |
free(*p2); | |
Есть ли утечки памяти? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void func(void) | |
{ | |
static int j = 0; | |
j++; | |
printf("%i ", j); | |
} | |
int main(int argc, char **argv) | |
{ | |
func(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В приложении два файла main.c и foo.c | |
//main.c | |
static int var1 = 0; | |
int main (nt argc, char **argv) | |
{ | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В приложении два файла main.c и foo.c | |
//main.c | |
int var1 = 0; | |
int main (int argc, char **argv) | |
{ | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int a = 1; | |
unsigned int b = 2; | |
unsigned int c = a | b; | |
Чему равна c? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a = 1; | |
int b = 1; | |
int c = 0; | |
int d = (a || b) && c; | |
Чему равна d? |
NewerOlder