六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦>創(chuàng)業(yè)指南>職場>面試題>

嵌入式軟件工程師面試題:數(shù)據(jù)聲明

時間: 敏敏644 分享

  數(shù)據(jù)聲明(Data declarations)

  1. 用變量a給出下面的定義

  a) 一個整型數(shù)(An integer)

  b) 一個指向整型數(shù)的指針(A pointer to an integer)

  c) 一個指向指針的的指針,它指向的指針是指向一個整型數(shù)(A pointer to a pointer to an integer)

  d) 一個有10個整型數(shù)的數(shù)組(An array of 10 integers)

  e) 一個有10個指針的數(shù)組,該指針是指向一個整型數(shù)的(An array of 10 pointers to integers)

  f) 一個指向有10個整型數(shù)數(shù)組的指針(A pointer to an array of 10 integers)

  g) 一個指向函數(shù)的指針,該函數(shù)有一個整型參數(shù)并返回一個整型數(shù)(A pointer to a function that takes an integer as an argument and returns an integer)

  h) 一個有10個指針的數(shù)組,該指針指向一個函數(shù),該函數(shù)有一個整型參數(shù)并返回一個整型數(shù)( An array of ten pointers to functions that take an integer argument and return an integer )

  答案是:

  a) int a; // An integer

  b) int *a; // A pointer to an integer

  c) int **a; // A pointer to a pointer to an integer

  d) int a[10]; // An array of 10 integers

  e) int *a[10]; // An array of 10 pointers to integers

  f) int (*a)[10]; // A pointer to an array of 10 integers

  g) int (*a)(int); // A pointer to a function a that takes an integer argument and returns an integer

  h) int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer

  人們經(jīng)常聲稱這里有幾個問題是那種要翻一下書才能回答的問題,我同意這種說法。當我寫這篇文章時,為了確定語法的正確性,我的確查了一下書。

  但是當我被面試的時候,我期望被問到這個問題(或者相近的問題)。因為在被面試的這段時間里,我確定我知道這個問題的答案。應(yīng)試者如果不知道

  所有的答案(或至少大部分答案),那么也就沒有為這次面試做準備,如果該面試者沒有為這次面試做準備,那么他又能為什么出準備呢?

嵌入式軟件工程師面試題:數(shù)據(jù)聲明

數(shù)據(jù)聲明(Data declarations) 1. 用變量a給出下面的定義 a) 一個整型數(shù)(An integer) b) 一個指向整型數(shù)的指針(A pointer to an integer) c) 一個指向指針的的指針,它指向的指針是指向一個整型數(shù)(A pointer to a pointer to an integer)
推薦度:
點擊下載文檔文檔為doc格式

精選文章

  • 嵌入式軟件工程師面試題:死循環(huán)
    嵌入式軟件工程師面試題:死循環(huán)

    死循環(huán)(Infinite loops) 1. 嵌入式系統(tǒng)中經(jīng)常要用到無限循環(huán),你怎么樣用C編寫死循環(huán)呢? 這個問題用幾個解決方案。我首選的方案是: while(1) { } 一些程序員更

  • 嵌入式軟件工程師面試題:預(yù)處理器
    嵌入式軟件工程師面試題:預(yù)處理器

    預(yù)處理器(Preprocessor) 1. 寫一個標準宏MIN,這個宏輸入兩個參數(shù)并返回較小的一個。 #define MIN(A,B) ((A) = (B) (A) : )) C/C++試題集 C/C++ Development這個測試是為下面的

  • 軟件工程師面試題匯總
    軟件工程師面試題匯總

    01. 您在以往的測試工作中都曾經(jīng)具體從事過哪些工作?其中最擅長哪部分工作? 答:從事過write test plan,creation of test case,進行功能測試,性能測試,編寫測

  • 軟件工程師是面試題大全
    軟件工程師是面試題大全

    1. 給你一個COCAN, 你如何測試(解釋說就是罐裝的可口可樂). 2. 如果將你的程序的語言擴展到非英語,例如中文, 你如何測試. 3.你如何在pocket pc 上TEST 你的

203969