C語言的關鍵字與注釋

來源:互聯網
上載者:User

標籤:sdfsdfsd   continue   register   關鍵字   fsdfsdf   

C語言的關鍵字包括:(32個)


auto double int struct break else long switch

case enum register typedef char extern return union

const float short unsigned continue for signed void

default goto sizeof volatile do if while static

關鍵字的特徵

1>  全部都是小寫

2>  在開發工具或者智能文本編輯工具中會顯示特殊顏色。預設情況下,C語言中的所有關鍵字在Xcode中都會顯示紫褐色



C語言的注釋:


// 單行注釋

/*

*/  多行注釋

注意

  • 單行注釋可以嵌套單行注釋、多行注釋

// 哇哈哈 // 呵呵呵

// /* fsdfsdf */  // sdfsdfsd
  • 多行注釋可以嵌套單行注釋

/*
// MJ
// 描述:第一個C語言程式
作用:這是一個主函數,C程式的進入點
*/
  • 多行注釋不能嵌套多行注釋

/* 哈哈哈
  /*嘻嘻嘻*/
   呵呵呵 */
  • 下面的寫法是錯誤的

// /*
哈哈哈
*/


C語言的關鍵字與注釋

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.