Question
#include <iostream>
using namespace std;
int main()
{
char name[30];
cout << "Enter name: ";
gets(name);
cout << "Name: ";
puts(name);
return 0;
}
a.
jobsjobs
b.
jobs
c.
compile time error
d.
program will not run
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this program?
Similar Questions
Discover Related MCQs
Q. setprecision requires which of the following header file?
View solution
Q. Which of the following header file does not exist?
View solution
Q. Which of the header file must be included to use stringstream?
View solution
Q. Which of the following header files is required for creating and reading data files?
View solution
Q. What does your class can hold?
View solution
Q. How many specifiers are present in access specifiers in class?
View solution
Q. Which is used to define the member of a class externally?
View solution
Q. Which other keywords are also used to declare the class other than class?
View solution
Q. Which of the following is a valid class declaration?
View solution
Q. The fields in the class in c++ program are by default
View solution
Q. Constructors are used to
View solution
Q. When struct is used instead of the keyword class means, what will happen in the program?
View solution
Q. Which keyword is used to define the user defined data types?
View solution
Q. Identify the correct statement .
View solution
Q. What does the data type defined by union will do?
View solution
Q. What is the syntax of user-defined data types?
View solution
Q. How many types of user-defined data type are in c++?
View solution
Q. What is the scope of typedef defined data types?
View solution
Q. How many types of models are available to create the user-defined data type?
View solution
Q. Where does the object is created?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!