What data encapsulation is in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }
How does work in c++?
Explain the operation of overloading of an assignment operator.
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
When does a name clash occur?
Why should you learn c++?
How const functions will be treated by compiler?
What is the use of ‘using’ declaration?
Why c++ is so important?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }
What are the different operators in C++?