31. The following code-segment is syntactically correct:
struct Names{string first, last;};
int main()
{
Names customer (“Orley”, “Smith”);
cout << Names.first << endl;
cout << Names.last << endl;
}
T__ F__
32. struct AUTO
{
int year;
char make[20];
};
Which statement correctly declares and initializes the
structure variables ?
a. struct AUTO car = 1990, ‘F’, ‘o’, ‘r’, ‘d’;
b. struct AUTO { 1990, “Ford” } car;
c. struct AUTO car = 1990, strcpy( make, “Ford” );
d. struct AUTO car { 1990, “Ford” };
33. The following implementation is syntactically incorrect:
class A
{
public:
void foo() { }
};
int main(){
A *p, obj;
obj.foo();
p = {&obj};
p->foo(); }
T__ F__
34. The following array definition is valid:
int numbers [10] = {0,0,1,0,0,1,0,0,1,1};
T__ F__
35. The
PayPal Gateway not configured
PayPal Gateway not configured