Sale!

 測驗: Exercise 2

Original price was: $40.00.Current price is: $30.00.

Category:

Description

Rate this product

測驗: Exercise 2

測驗說明
問題 1 100 分數
The goal of this exercise is to write and run a hello world C program in the
terminal using CLEAR (you must use CLEAR). The terminal steps have been
repeated below. Upload a screenshot of your program outputting hello world
in terminal.
To start, replace netID with your own in the command below. You are logging
into CLEAR, which is Rice’s linux environment, and then compiling and
running a C program.
$ ssh netID@ssh.clear.rice.edu
$ mkdir helloworld
$ cd helloworld
$ nano helloworld.c
#include <stdio.h>
int main() {
printf(“Hello world\n”);
return 0;
}
Note: Use ctl+x to exit the nano text editor. It will ask you if you want to save
changes – type y and hit enter.
$ gcc helloworld.c
$ ls
a.out
2023/8/30 下午4:58 測驗: Exercise 2
https://canvas.rice.edu/courses/59111/quizzes/91245/take 2/2
沒有要保存的新數據。上次檢查於 16:58
上傳
$ ./a.out
Upload a screenshot of your program outputting hello world in terminal.
選擇檔案
提交測驗

Reviews

There are no reviews yet.

Be the first to review “ 測驗: Exercise 2”

Your email address will not be published. Required fields are marked *