STL (140)
OOPS (873)
C++ General (2409) A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.
What is the array and initializing arrays in c++?
Differentiate between a constructor and a method in C++.
How are pointers type-cast?
What is the best c++ compiler?
Can we use pointers in c++?
Difference between pointer to constant and constant pointer to a constant. Give example.
When should overload new operator on a global basis or a class basis?
What is the role of static keyword for a class member variable?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Write a program that ask for user input from 5 to 9 then calculate the average
Differentiate between C and C++.
Explain the difference between new() and malloc() in c++?
Differentiate between realloc() and free().
What are the 3 principles of oop?