Tasks studies - laboratory
Find and list the versions of the C language standard.
What is a compiler?
Describe what an IDE (Integrated Development Environment) is. How does it facilitate the programmer’s work?
List the conventions for naming variables in programming and provide examples.
gcc
in the terminal. If the following message appears in the terminal, skip the next step.
Create a folder with your initials and album number on the desktop and in it the lab1 folder. Start Visual Studio Code and then open the created lab1 folder.
Hello World!
and the version of the C language standard used for compilation.
gcc path_to_program –o executable_name
[1]The CodeRunner add-on will allow you to compile the active file and then run the generated program.
By default, the code runner plugin starts the program in read mode. This means that it will not be possible to read data from the keyboard. To get this option, in the VSCode settings, you need to find the following option:
To modify the command compiling the C code, find the option:
and then edit the settings.json file. For example, to force the code to be compiled to the c99 standard, the command should be modified as follows:
To specify the correct path to the compiler, find the following settings panel:
Then provide the path to the installed compiler: