Dab tsi yog ib hom lus tsis muaj zog ntaus ntawv programming?
Dab tsi yog ib hom lus tsis muaj zog ntaus ntawv programming?

Video: Dab tsi yog ib hom lus tsis muaj zog ntaus ntawv programming?

Video: Dab tsi yog ib hom lus tsis muaj zog ntaus ntawv programming?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

A qaug zog - yam lus ntawm qhov tod tes yog a lus nyob rau hauv uas variables tsis khi rau ib yam ntaub ntawv tshwj xeeb; lawv tseem muaj hom, tab sis hom kev txwv kev nyab xeeb qis dua piv rau qhov muaj zog- yam lus.

Thiab cov lus nug yog, dab tsi yog hom lus uas muaj zog thiab ntaus yam tsis muaj zog?

Lub ntsiab sib txawv, kwv yees hais lus, ntawm a hom lus zoo heev thiab a tsis muaj zog ntaus ntawv ib ni a tsis muaj zog ntaus ntawv ib qho ua rau kev hloov pauv ntawm cov hom tsis sib xws implicitly, thaum a ntaus ntawv heev ib qho feem ntau tsis tso cai rau kev hloov pauv tsis raug ntawm cov hom tsis sib xws.

Tsis tas li ntawd, dab tsi yog ib hom lus uas muaj zog heev? A muaj zog - ntaus ntawv programming lus yog ib qho uas txhua tus hom ntawm cov ntaub ntawv (xws li tus lej, cim, hexadecimal, packed decimal, thiab lwm yam) yog predefined raws li ib feem ntawm programming lus thiab tag nrho cov tsis tu ncua lossis qhov sib txawv uas tau teev tseg rau ib qho kev pab cuam yuav tsum tau piav qhia nrog ib qho ntawm cov ntaub ntawv hom.

Cov lus nug tseem yog, C puas siab lossis tsis muaj zog?

C yog statically ntaus ntawv lus uas txhais tau hais tias txhua qhov sib txawv hom yog txiav txim siab ntawm compile lub sij hawm thiab tsis run-time xws li Python los yog JavaScript. Yog li ntawd, kom sum nws li static, tsis muaj zog ntaus ntawv lus. C yog ncaj ncees ntaus ntawv heev.

Dab tsi yog txhais los ntawm hom lus?

Hauv yam lus peb txhais hom ntawm tag nrho cov variables uas paub nyob rau hauv ob qho tib si compile lub sij hawm los yog runtime. Rau ib lus ua statically ntaus ntawv nws txhais tau tias tias cov hom ntawm txhua qhov sib txawv yog paub los yog inferred ntawm compile lub sij hawm. A lus yog dynamically ntaus ntawv yog tias hom kev hloov pauv tau txhais thaum lub sijhawm ua haujlwm.

Pom zoo: