how do u initialize the constant variables

Answer Posted / subu

const int pp = 100;

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an interface in oop?

591


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2753


Can you name some types of inheritance?

639


What is the diamond problem in inheritance?

576


What is the main purpose of inheritance law?

667






How oops is better than procedural?

583


write a program to find 2^n+1 ?

1546


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


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1637


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1938


What is inheritance write a program to show use of inheritance?

611


What is the real life example of polymorphism?

605


Can bst contain duplicates?

664


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1653


What is encapsulation example?

545