adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #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

Answer: (c).compile time error

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?