#cpp
Read more stories on Hashnode
Articles with this tag
1) What happens if the following C++ statement is compiled and executed? int *ptr = NULL; delete ptr; Explanation: The above statement is...
1) How to input string in C++? There are three ways to input a string, using cin, get, and getline. All three methods are mentioned in the sample...
1) What is an abstract class in C++? An abstract class in C++ is such that cannot be used directly and is used to form a base class for others to...
1) How to sort vector in C++ ? #include<bits/stdc++.h> using namespace std; //custom fuction to sort increasing order bool sortInc(int a,int b) { ...
1) What is the difference between reference and pointer? ReferencePointer Reference is used to refer to an existing variable in another...
1) Difference b/w Java and C++ A) Goto Statements:- C++: Supports goto statements, which allow the program to jump to another point in the...