Computer scienceProgramming languagesC++Types and data structures

Structures

Theory

Errors

Report a typo

Our author again made several mistakes.

Try to find and fix them.

Sample Input 1:

Sample Output 1:

45
Write a program in C++
#include <iostream>

struct Person {
string name;
int age;
}


int main(){
Person mike = { "Mike Wazowski", 45, 1.2 };
cout << mike.age;
}

Create a free account to access the full topic