<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            感恩節作文:感恩節信函

            時間:2025-11-17 05:31:36 感恩節 我要投稿

            感恩節作文:感恩節信函

              達內C++班Core C部分測試題

            感恩節作文:感恩節信函

              姓名: 成績:

              1. 結構體與聯合體有何區別?(5分)

              2. h頭文件中的ifndef/define/endif 的作用?(5分)

              3. #i nclude 與 #i nclude “file.h”的區別?(5分)

              4. 以下為Windows NT下的32位C++程序,請計算sizeof的值(10分)

              char str[] = “Hello” ;

              char *p = str ;

              int n = 10;

              請計算sizeof (str ) = (2分)

              sizeof ( p ) = (2分)

              sizeof ( n ) = (2分)

              void Func ( char str[100])

              {

              請計算

              sizeof( str ) = (2分)

              }

              void *p = malloc( 100 );

              請計算

              sizeof ( p ) = (2分)

              5. 分析以下程序并回答問題(5分)

              void GetMemory(char *p)

              {

              p = (char *)malloc(100);

              }

              void Test(void)

              {

              char *str = NULL;

              GetMemory(str);

              strcpy(str, “hello world”);

              printf(str);

              }

              請問運行Test函數會有什么樣的結果?

              6. 請分析以下程序輸出結果:(5分)

              #include

              main()

              {

              int a,b,c,d;

              a=10;

              b=a++;

              c=++a;

              d=10*a++;

              printf(“b,c,d:%d,%d,%d”,b,c,d);

              return 0;

              }

              7.請寫出程序出出結果(5分)

              main()

              {

              int a[5]={1,2,3,4,5};

              int *ptr=(int *)(&a+1);

              printf(“%d,%d”,*(a+1),*(ptr-1));

              }

              8.用至少兩種方法將一個整數轉化為其數字字符串(10分)

              9.用程序描述冒泡排序算法,并簡要敘述其原理(10分)

              10.自己實現C風格字符串操作的三個函數int strlen(const char* s),

              char* strcpy(char* dest,const char* str),

              char* strcat(char* dest,const char* src);(20分)

              11.簡述C語言內存三大分配函數的用法?(提醒:calloc,malloc,realloc)

              (10分)

              12.新建文件file2.txt,將已經存在的文件file1.txt中的內容寫入file2.txt當中(10分)

            【感恩節作文:感恩節信函】相關文章:

            關于感恩節的作文:感恩節03-07

            關于感恩節的作文:感恩節的習俗03-07

            感恩節作文03-19

            感恩節作文12-24

            感恩節作文04-23

            【精選】感恩節的作文01-16

            ★感恩節作文12-08

            感恩節作文11-30

            感恩節的作文(經典)02-26

            感恩節作文03-15

            • 相關推薦
            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看