P Priyanka Tomar • 35.28K Points Coach Bookmark Embed Report View In MB-Short Q. Which of the following is the correct syntax to open a file in C++? (A) ofstream file('filename.txt'); (B) ofstream file("filename.txt"); (C) ifstream file('filename.txt'); (D) ifstream file("filename.txt"); Correct Answer - Option(B) Views: 71 Filed under category C++ Share
Discusssion
Login to discuss.