Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Datatypes Modifiers | Data Types and Arrays
C++ Intermediate | Mobile-Friendly
course content

Kursinnhold

C++ Intermediate | Mobile-Friendly

C++ Intermediate | Mobile-Friendly

1. Data Types and Arrays
2. References & Pointers
3. Dynamic Memory
4. Functions

book
Datatypes Modifiers

There are also name implies - datatype modifiers. They can modify the length of data that a particular data type can hold.

  • signed - to take negative and positive values.

  • unsigned - to take only positive diapason of values.

  • short - to short the diapason and memory needed for your program.

  • long - to lengthen the diapason and memory required for your program.

python
question mark

We can also combine the power of two datatypes modifiers by declaring the values (it takes the features from 2 modifiers simultaneously). In your opinion, which size and sign will have the datatype unsigned short int?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

course content

Kursinnhold

C++ Intermediate | Mobile-Friendly

C++ Intermediate | Mobile-Friendly

1. Data Types and Arrays
2. References & Pointers
3. Dynamic Memory
4. Functions

book
Datatypes Modifiers

There are also name implies - datatype modifiers. They can modify the length of data that a particular data type can hold.

  • signed - to take negative and positive values.

  • unsigned - to take only positive diapason of values.

  • short - to short the diapason and memory needed for your program.

  • long - to lengthen the diapason and memory required for your program.

python
question mark

We can also combine the power of two datatypes modifiers by declaring the values (it takes the features from 2 modifiers simultaneously). In your opinion, which size and sign will have the datatype unsigned short int?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
Vi beklager at noe gikk galt. Hva skjedde?
some-alt