


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、將一個字符串逆序2、將一個鏈表逆序3、計算一個字節(jié)里(byte)里面有多少bit被置14、搜索給定的字節(jié)(byte)5、在一個字符串中找到可能的最長的子字符串6、字符串轉(zhuǎn)換為整數(shù)7、整數(shù)轉(zhuǎn)換為字符串威盛什么是平衡二叉樹?編寫一個刪除平衡二叉樹的程序?寫一個程序,求有向有權(quán)圖兩點之間的最小權(quán)?3?根據(jù)你的理解,寫出Cstring類的構(gòu)造函數(shù)和析構(gòu)函數(shù)?4?使用C語言實現(xiàn)對ini文件的訪問,使程序可以對int,double,字符串類進行讀寫。5.nXn個方格(n為任意整數(shù)),定義若兩個格有公共邊則稱兩個格相鄰。現(xiàn)將個格中的N個格子圖黑,使每個格子都與黑格子相鄰。試編程,使N最小。l.static變量和static函數(shù)各有什么特點?3?描述一下嵌入式基于ROM的運行方式基于ram的運行方式有什么區(qū)別。task有幾種狀態(tài)?task有幾種通訊方式?C函數(shù)允許重入嗎?嵌入式操作系統(tǒng)和通用操作系統(tǒng)有什么差別?一面,技術(shù)面VxWorks、uc/OS、Palm嵌入式系統(tǒng)操作系統(tǒng)的區(qū)別?做嵌入式軟件開發(fā)和普通桌面軟件開發(fā)有什么區(qū)別?c語言問題,union和struct的區(qū)別?sizeof(—大堆變量),如果用這個函數(shù)分配內(nèi)存的大小一定與定義相同嗎?解釋什么是優(yōu)先級反轉(zhuǎn)。Canstructuresbepassedtothefunctionsbyvalue?Whycannotarraysbepassedbyvaluestofunctions?Advantagesanddisadvantagesofusingmacroandinlinefunctions?Whathappenswhenrecursionfunctionsaredeclaredinline?Scopeofstaticvariables?Differencebetweenobjectorientedandobjectbasedlanguages?Multipleinheritance-objectscontainhowmanymultiplyinheritedancestor?Whatarethe4differenttypesofinheritancerelationship?Howwouldyoufindoutthenoofinstanceofaclass?Isjavaapureobjectorientedlanguage?Why?Orderofconstructoranddestructorcallincaseofmultipleinheritance?Canuhaveinlinevirtualfunctionsinaclass?Whenyouinheritaclassusingprivatekeywordwhichmembersofbaseclassarevisibletothederivedclass?Whatistheoutputofprintf("\nab\bcd\ref");->ef#definecat(x,y)x##yconcatenatesxtoy.Butcat(cat(1,2),3)doesnotexpandbutgivespreprocessorwarning.Why?Canyouhaveconstantvolatilevariable?Yes,youcanhaveavolatilepointer?++*ipincrementswhat?itincrementswhatippointstoOperationsinvolvingunsignedandsigned一unsignedwillbeconvertedtosigneda+++b->(a++)+bmalloc(sizeof(O))willreturn一validpointermain(){fork();fork();fork();printf("helloworld");}一willprint8times.Arrayofptstofunctions一void(*fptr[10])()Whichwayofwritinginfiniteloopsismoreefficientthanothers?thereare3ways.#error一whatitdoes?Howisfunctionitoa()written?Whotoknowwethersystemusesbigendianorlittleendianformatandhowtoconvertamongthem?Whatisinterruptlatency?Whatisforwardreferencew.r.t.pointersinc?Howisgenericlistmanipulationfunctionwrittenwhichacceptselementsofanykind?Whatisthedifferencebetweenhardreal-timeandsoftreal-timeOS?Whatisinterruptlatency?Howcanyourecuceit?Whatisthedifferncebetweenembeddedsystemsandthesysteminwhichrtosisrunning?Howcanyoudefineastructurewithbitfieldmembers?WhatarethefeaturesdifferentinpSOSandvxWorks?Howdoyouwriteafunctionwhichtakes2arguments-abyteandafieldinthebyteandreturnsthevalueofthefieldinthatbyte?WhatarethedifferentstorageclassesinC?WhatarethedifferentqualifiersinC?WhatarethedifferentBSDandSVR4communicationmechanisms一位資深的嵌入式項目經(jīng)理曾這樣對我說:搞嵌入式要往下走,要搞底層要搞算法,因為它們比較有前途。EmbeddedfirmwareinterviewquestionsWritefunctioninCthatgetsarrayofchars,andsearchforthelongestsequenceofrepeatedly1bits.Itreturnsthethefirstbitplaceinthesequenceandthenumberof1bitsinthesequence.-(a)loopof2A0,2A1,?…,2A7isdonewith1vvjwhen0<=j<=7.(b)Takecareofrememberingthefirstplaceofthebitsequenceyouarecounting.Youhave16bitregisterthatincrementitselfandloopsabouteverysecond.Whentheregisterreach0xffffitwillissueaninteruptandwillrunthefunctionupdate_time().Thereisafunctionunsignedlongget_time()thatreturnsthetime.Youneedtoimplementthetwofunctions.-(a)Youneedtocounteveryinterruptinordertosavethenumberofseconds.(b)Thecounterwillbethe16bitMSB,andtheactualregisterwillbe16bitLSB.(c)Iftheregisterwillbeat~0xfff0,youwillreturnMSBthatisnotcorrect,becauseyouwillreadthecounter,theninterruptwillaccureandincrementbyone.Nowyouhavecounterthatisnotcorrect.(d)Youneedtocheckforthe(c)problem,andifyoucatchtheproblem,youneedtoreadonceagaintheregisterandthecounterbeforeyoureturnthem.Youdependonthefacttheyouhaveaboutanotherseconduntiltheregisterwillloop.對嵌入式初學者有必要解釋一下什么是firmware,中文為固件,一般跑在DSP上,是比較底層的東西,也是目前比較熱門和有挑戰(zhàn)性的嵌入式工種。從下面的一則招聘信息中我們也可以知道Firmware大概干些什么。招聘職位:Firmwareengineer/SeniorFirmwareengineer職位描述:FirmwareEngineerResponsibility:DevelopingoradaptinghardwaredevicedriverDevelopingoradaptingembeddedapplicationsoftwareforVideoCodecImplementingsoftwareonsystem-on-chipsolutionusingacombinationofCandassemblyprogramminglanguages.TuningsoftwareforperformanceRequirements:.SolidskillsdevelopinginCandassemblylanguages,Experiencedevelopinganddebuggingembeddedsystems(ARC,ARM,MIPS,SPARC,...).familiarwithperipheralsandprotocols,suchasI2C,UART,USB,LCD,Ethernet,IDE,SD,TCP/IP,RTP...,KnowledgeofVideoCODECstandardandprinciple,eg:MPEG-1/2/4,H.264ispreferred.goodatEnglish,teamplayer,positivepersonality,andabletoworkunderpressuretomeetdeadlines.BSinElectricalEngineering,ComputerScience,Abilitytolearnandapplynewknowledgequickly職位要求:SeniorFirmwareEngineerResponsibility:Developmentofembeddedsoftwaresystemsforvideoprocessing,involveinallphasesoftheembeddedsoftwaredevelopmentcycleincludingresearch,design,implementation,systemdebug,anddocumentation.Top-levelsystemfirmwareintegration;Systemperformancetrimmingandimprovement;Requirements:Experiencedevelopinganddebuggingembeddedsystems(ARC,ARM,MIPS,SPARC,...),especiallyinaRTOSenvironment(ThreadX,uclinux,MQX).familiarwithperipheralsandprotocols,suchasI2C,UART,USB,LCD,Ethernet,IDE,SD,TCP/IP,RTP..GoodknowledgeofVideoCODECstandardandprinciple,(eg:MPEG-1/2/4,H.264),hands-on.experi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 公司自我批評活動方案
- 公司脫口秀比賽活動方案
- 公司每月線上活動方案
- 公司節(jié)假日福利策劃方案
- 公司本科生團建活動方案
- 公司組織出行活動方案
- 公司秋游爬山活動方案
- 公司盛典活動策劃方案
- 公司端午粽子活動方案
- 公司春節(jié)營銷活動方案
- 醫(yī)學資料 2023版《中國慢性腎臟病患者高血壓管理指南》解讀學習課件
- 體檢中心質(zhì)量控制指南
- 雙重預(yù)防機制工作實施方案
- 2025年標準離婚協(xié)議書范本完整版
- 跨國知識產(chǎn)權(quán)爭議解決的國際合作與協(xié)調(diào)
- 幼兒園預(yù)防中暑課件
- 2002版《水利工程施工機械臺時費定額》
- 高分子物理模擬試題+參考答案
- 廢棄物焚燒爐安全操作規(guī)程
- 2025年業(yè)務(wù)員個人工作計劃樣本(3篇)
- 職業(yè)技術(shù)學院“第二課堂成績單”制度實施辦法
評論
0/150
提交評論