You are on page 1of 4

Operating System Lab

Submitted by: Zahra Batool


ID:19014020005
Program: CS-11
 To check the version type this command

$ gcc –version or gcc –v

 Opening a file using any editor for c program

$ sudo gedit program.c

 Adding a code in the file


 Compiling c code

$ sudo gcc program.c

Or

$ sudo gcc –o program program.c

 Output

You might also like