Programs and Guide for you

Programs and Guide for you Here you can get codes and guide of c++ and c language,just tell me your requirements. I am here to help you in your projects,KEEP PROGRAMMING!.

We provide you guide in your c++ and c projects and if you want the complete projects,they are also available at reasonable prices.

20/06/2015

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

Ans: An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be "attach" to the object that has items to step through. .An external iterator has the advantage that many difference iterators can be active simultaneously on the same object.

20/06/2015

Back with some other questions and knowledge, if you have any problem in your c++ and c program inbox me..

This flowchart,i have found it on a website,has complete summary of different containers.
17/06/2015

This flowchart,i have found it on a website,has complete summary of different containers.

17/06/2015

Daily Question #6
what is the output of the following code?

using namespace std;

int x = 10;
void fun()
{
int x = 2;
{
int x = 1;
cout

16/06/2015

Daily knowledge #4
Inheritance vs Aggregation,when to use inheritance or aggregation?
Ans:In normal cases:
* If The new class has almost the same functionality as the original class. Use inheritance. The new class is now a subclass of the original class.
* If the new class must have the original class. Use aggregation. The new class has now the original class as a member.

However,in some cases we have to use other tricks that comes by practice

* If we have to inherit only some part of original class, or we are forced to override a lot of functionality to keep the correlation logical during inheritance. Then aggregation is a good choice.
* If we use aggregation but we find out we need to copy almost all of the functionality. Then inheritance is a good choice.

16/06/2015

Daily Question #5 Constructor is
A:A class automatically called whenever a new object of this class is created
B:A class automatically called whenever a new object of this class is destroyed
C:A function automatically called whenever a new object of this class is created
D:A function automatically called whenever a new object of this class is destroyed

15/06/2015

Daily question #4
To use toupper() and tolower() functions in c++,we need to include
A:
B:
C:
D:

Primitive data types in c++:
15/06/2015

Primitive data types in c++:

15/06/2015

Want your feedback,do comment on the questions and daily knowledge. And if you have any questions regarding codes in c/c++ or want any help in your c++ or c projects,i am here to help you.KEEP PROGRAMMING! ;)

15/06/2015

Daily knowledge #3
What are Lvalues and Rvalues?
Ans: lvalue : Expressions that refer to a memory location is called "lvalue" expression. An lvalue may appear as either the left-hand or right-hand side of an assignment.

rvalue : The term rvalue refers to a data value that is stored at some address in memory. An rvalue is an expression that cannot have a value assigned to it which means an rvalue may appear on the right- but not left-hand side of an assignment.

*Variables are lvalues and so may appear on the left-hand side of an assignment.
*Numeric literals are rvalues and so may not be assigned and can not appear on the left-hand side.
Following is a valid statement:

int g = 20;
But following is not a valid statement and would generate compile-time error:

10 = 20;

15/06/2015

Daily Question #3
What will be the result of the following statement?
x=10;
y=++x;

A:x=10; y=10
B:x=10;y=11
C:x=11;y=10
D:x=11;y=11

14/06/2015

Which compiler do you use??

Address

Karachi

Website

Alerts

Be the first to know and let us send you an email when Programs and Guide for you posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share