how do u initialize the constant variables

Answer Posted / yughandhar

as for my knowledge,the constant variables are intialised by
keyword called DEFINE
Eg:
#define pie=3.14

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is destructor oops?

618


How to use CMutex, CSemaphore in VC++ MFC

4326


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1618


What is class and example?

567






What is the fundamental idea of oop?

634


Why is polymorphism used?

581


What is class and object with example?

583


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1696


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

628


Why is object oriented programming so hard?

613


What does <> mean pseudocode?

620


How do you define a class in oop?

626


How long to learn object oriented programming?

561


Write a c++ program to display pass and fail for three student using static member function

2810