Главная / Программирование на языке C в Microsoft Visual Studio 2010 / Какая программа содержит ошибку?

Какая программа содержит ошибку?

вопрос

Правильный ответ:

struct struct_type { int a, b; char ch; } ; struct struct_type2 { int a, b; char ch; } ; void f1(struct struct_type2 parm); int main(void) { struct struct_type2 arg; arg.a = 1000; f1(arg); return 0; } void f1(struct struct_type2 parm) { printf("%d", parm.a); }
struct struct_type { int a, b; char ch; } ; struct struct_type2 { int a, b; char ch; } ; void f1(struct struct_type2 parm); int main(void) { struct struct_type2 a, *arg; arg = &a; arg->a = 1000; f1(arg); return 0; } void f1(struct struct_type2 parm) { printf("%d", parm.a); }
struct struct_type { int a, b; char ch; } ; struct struct_type2 { int a, b; char ch; } ; void f1(struct struct_type2 parm); int main(void) { struct struct_type arg; arg.a = 1000; f1(arg); return 0; } void f1(struct struct_type2 parm) { printf("%d", parm.a); }
Сложность вопроса
72
Сложность курса: Программирование на языке C в Microsoft Visual Studio 2010
62
Оценить вопрос
Очень сложно
Сложно
Средне
Легко
Очень легко
Комментарии:
Аноним
Гранд мерси за решениями по intiut'у.
09 окт 2019
Аноним
спасибо за тест
02 фев 2018
Оставить комментарий
Другие ответы на вопросы из темы программирование интуит.