笔试题-C语言开发工程师笔试题范文.docxVIP

  • 8
  • 0
  • 约5.98千字
  • 约 8页
  • 2021-09-06 发布于湖北
  • 举报

笔试题-C语言开发工程师笔试题范文.docx

C语言开发工程师笔试题范文 PAGE 1 C语言开发工程师笔试题范文 C语言之所以命名为C,是因为C语言源自Ken Thompson发明的B语言,而B语言则源自BCPL语言。下面小编给大家分享C语言开发工程师笔试题的内容,希望能够帮助大家,欢迎阅读! C语言开发工程师笔试题 1、改错 如下程序能不能正确输出,如果不能,让他正确输出hello字符串。 void New(char 星符号 p) { p = new char[5]; } void main { char星符号 p = NULL; New(p); strcpy(p, quot;helloquot;); printf(quot;%squot;, p); } 2、排列算法 一个数组{3,4,5,6,3},请输出这个数组的全排列,比如34563、43563、33456...。 #include #include template void Print(T星符号 tArray, int iSize) { for(int i = 0; i lt; iSize; ++i) { std::cout lt;lt; tArray[i] lt;lt; #39; #39;; } std::cout lt;lt; std::endl; } template void Permutation(T星符号 tArray, int iSize) {

文档评论(0)

1亿VIP精品文档

相关文档