MCQOPTIONS
Saved Bookmarks
| 1. |
Note:Includes all required header filesusing namespace std; int main () { char fine, course; cout << "Enter a word: "; fine = cin.get(); cin.sync(); course = cin.get(); cout << fine << endl; cout << course << endl; return 0; } 10.ios::trunc is used for ? |
| A. | If the file is opened for output operations and it already existed, no action is taken. |
| B. | If the file is opened for output operations and it already existed, then a new copy is created. |
| C. | If the file is opened for output operations and it already existed, its previous content is deleted and replaced by the new one. |
| D. | None of the above |
| E. | |
| Answer» D. None of the above | |