What is friend function?

Answer Posted / karthi

it can access private and public member function

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to find 2^n+1 ?

1549


Can we have inheritance without polymorphism?

611


What is the difference between encapsulation and polymorphism?

594


Templates mean

1587


What is and I oop mean?

618






Why is polymorphism used?

583


What is oops with example?

564


What is static in oop?

588


Write a program to sort the number with different sorts in one program ??

1916


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2166


What is destructor example?

595


What is the important feature of inheritance?

633


What is inheritance in oop?

604


What does enum stand for?

613


Why is polymorphism needed?

599