logo

Crowdly

Browser

Додати до Chrome

Let  a1.out  and  a2.out  be the executable files obtained by running  gcc -Wa...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Let a1.out and a2.out be the executable files obtained by running 

 gcc -Wall -Werror -Wpedantic -o a1.out helloWorld1.c

and 

 gcc -Wall -Werror -Wpedantic -o a2.out helloWorld2.c
where helloWorld1.c is  

#include <stdio.h>

int main() {

int i = 2;

if (i==1) {

printf("hello world!\n");

i++;

}

if (i>1) printf("hello world!\n");

}

and helloWorld2.c is  

#include <stdio.h>

int main() {

int i = 2;

if (i==1) {

printf("hello world!\n");

i++;
                  if (i>1) printf("hello world!\n")
                  }
}

Select the true statements.

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.royalholloway.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome