What is difference between #define and const?
Answer Posted / chitransha seth
with # define u can always undefine the variable by using
# undef but a const once defined cannot be altered
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are the 3 principles of oop?
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.
What is the main purpose of inheritance law?
How oops is better than procedural?
Can you explain polymorphism?
What is overloading in oop?
What is difference between abstraction and encapsulation?
What are the 5 oop principles?
What is polymorphism what are the different types of polymorphism?
What is class and example?
What is the point of polymorphism?
What is difference between oop and pop?
Who invented oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
#include