What happens when you attempt to compile and run the following code?
#include
using namespace std;
void set(struct person*);
struct person
{
char name[25];
int age;
};
int main()
{
struct person e = {"Steve", 30};
set(&e);
cout<< e.name << " " << e.age;
return 0;
}
void set(struct person *p)
{
p?>age = p?>age + 1;
}
Han
22 days agoElbert
3 days agoJannette
1 months agoKenneth
2 days agoDonte
8 days agoLing
1 months agoAnglea
3 days agoBettina
9 days agoLisha
1 months agoShawnda
2 days agoKizzy
20 days agoDanica
23 days agoDannie
29 days agoTasia
2 months agoKing
1 months agoKing
1 months agoMicaela
2 months agoLeota
2 months agoMicaela
2 months ago