We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Basic Data Types
- Discussions
Basic Data Types
Basic Data Types
Sort by
recency
|
1529 Discussions
|
Please Login in order to post a comment
Two issues with this hackerrank problem, the problem statement is not having a proper start heading, so its confusing! Second, it is not even mentioned that if the candidate decides to use setprecision, they will have to add a header as well #include. So #hackerrank team, please look inot it!
Here is the solution for the problem in c++
include
include
include
using namespace std;
int main() { int a; long b ; char c ; float d ; double e ;
}
cannot we initialize int float etc with deceleration
how can I do it using cin and cout
Little counterintuitive, but works none the less. Simple, easily understandable code you can use (no credit)
C++ and C are distinct programming languages, each with its own unique features and purposes. While they can work together seamlessly when needed, they remain separate entities. Despite their compatibility and ability to complement each other in projects, they should be treated as independent languages. Maintaining their distinction preserves their individual strengths and ensures clarity in usage, even when used simultaneously.