How to declare a pointer to an array of integers?
Is c++ the most powerful language?
How size of a class can be calulated?
Can we declare destructor as static? Explain?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
How the virtual functions maintain the call up?
int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
show that among any group of five (not necessary consecutive ) integers, there are two with the same remainder when divided by 4.
Eplain extern keyword?
How would you implement a substr() function that extracts a sub string from a given string?
Explain the scope of resolution operator.
Why is null pointer used?
Explain the ISA and HASA class relationships. How would you implement each in a class design?