What are literals in C++?
No Answer is Posted For this Question
Be the First to Post Answer
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
Should you pass exceptions by value or by reference?
How can you force instantiation of a template?
How would you use the functions sin(), pow(), sqrt()?
How many ways can a variable be initialized into in C++?
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.
What is lambda expression c++?
Is c++ a dying language?
What is #include sstream?
Explain method of creating object in C++ ?
How a modifier is similar to mutator?
What is code reusability in c++?