Syntax error near unexpected token '('

前端 未结 3 1560
你的背包
你的背包 2021-01-16 20:03

As a beginner, I am trying to write a simple c program to learn and execute the \"write\" function.

I am trying to execute a simple c program simple_write.c

3条回答
  •  余生分开走
    2021-01-16 20:16

    Ok,

    I got what i was doing wrong.

    These are the steps that I took to get my problem corrected:-

    1. $ gedit simple_write.c

    2. Write the code into this file and save it (with .c extension).

    3. $ make simple_write

    4. $ ./simple_write

    And I got the desired output.

    Thanks!!

提交回复
热议问题