The type of variable a pointer points to must be the part of
pointer's definition so that:
Answer Posted / karthiga
a)data types don't get mixed up when arithmetic is performed
on them
b)pointers can be added to one another to access structure
members
c)the compiler can perform arithmetic correctly to access
array elements
d)both a and c
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
What is the renewal class?
What is encapsulation with example?
What is inheritance in oop?
Why do we use polymorphism in oops?
What do you mean by overloading?
What is meant by multiple inheritance?
What is an example of genetic polymorphism?
when to use 'mutable' keyword and when to use 'const cast' in c++
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
How is polymorphism achieved?
Can private class be inherited?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is interface? When and where is it used?
How to use CMutex, CSemaphore in VC++ MFC