GNU Compiler Collection interview questions

GNU Compiler Collection interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 5

1. Which one of the following command creates the executable file a.out?

Correct Answer is : gcc sanfoundry.c

2. If we compile the sanfoudry.c file with the command “gcc -o sanfoundry sanfoundry.c”, then the executable file will be

Correct Answer is : sanfoundry

3. If we compile the sanfoundry.c file with the command “gcc -c sanfoundry.c”, then the output file will be

Correct Answer is : sanfoundry.o

4. Which gcc option includes debugging info in the generated object code?

Correct Answer is : -g

5. The command “gcc -S sanfoundry.c” will

Correct Answer is : stop compilation process after the generation of assembly code file & generate sanfoundry.s file

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon