What happens when you attempt to compile and run the following code?
#include
using namespace std;
void set(struct person*);
struct person
{
int age;
};
int main()
{
struct person e = {18};
set(&e);
cout<< e.age;
return 0;
}
void set(struct person *p)
{
p?>age = p?>age + 1;
}
Karl
1 years agoMonroe
1 years agoMa
1 years agoLashaun
1 years agoAlita
11 months agoCasey
12 months agoGerald
12 months agoViva
1 years agoFlo
1 years agoLayla
1 years agoWillodean
1 years agoSueann
1 years agoLauran
1 years agoAlita
1 years agoIlona
1 years agoMeaghan
1 years agoChandra
1 years agoJanella
1 years agoRoselle
1 years agoNana
1 years agoTeri
1 years ago