Wednesday, February 3, 2010

True or False??? C++?

True or False???





Given:


struct prs


{


char name[30];


int num;


} ;


it is acceptable to define and initialize a


variable at compile time thus:


struct prs agent = {';James Bond';, 007};True or False??? C++?
Yes but in C++ you don't need the struct keyword with the variable declaration. In other words, instead of





struct prs agent = {';James Bond';, 007};





this is fine





prs agent = {';James Bond';, 007};True or False??? C++?
wat do you mean
I'm going out on a limb here, but this is the 3rd or 4th true/false question in a row you have posted. I'm guessing you're doing your computer science homework. I'm going to go with :





Students should do their own homework : True.
true
true
true
  • short hair cuts
  • No comments:

    Post a Comment