logo

Crowdly

Browser

Add to Chrome

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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.

More questions like this

Want instant access to all verified answers on moodle.royalholloway.ac.uk?

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

Browser

Add to Chrome