Flashcards
Sem título
Flashcards do conjunto (10)
- 1what does the ifstream.in do?allows data to be read from the file into the program
- 2what does the ofstream out do?Allows data to be sent from program until a file
- 3what is a pointer?It is a variable that can contain the address but not the value of a memory location
- 4What is a 'constant pointer'?it must be initalised to an address and cannot change the address it contains
- 5what is a 'pointer to constant'?It is a pointer that cannot be used to change the value of variables it points to
- 6why are pointers used?to communicate data across functions
- 7how is a structure defined?using the STRUCT keyword
- 8which ways can variables be passed as parameters to functions?- passed by value
-passed by reference
-passes by address - 9what does the push_back function do?It is used to add an item in a vector that is empty (size 0) or full
- 10what does the pop_back function do?It removes a single element at the end of a non-empty
Informações
- Descrição
- FlashCards sobre Sem título, criado por ahood.mohamed em 21-05-2014.
- Criado por
- ahood.mohamed
- Visualizações
- 8
- Avaliação