शब्दकोश · प्रोग्रामिंग

C++

C++ is a compiled, multi-paradigm language that extends C with classes, templates and a large standard library, used where performance matters.

अपडेट: अक्टूबर 6, 2026

C++ is a compiled, multi-paradigm programming language that began as "C with Classes" in the 1980s, created by Bjarne Stroustrup. It adds object-oriented features, templates, exceptions and a standard library to C while keeping low-level control over memory.

Why it matters

C++ powers game engines, browsers, databases, trading systems and much performance-sensitive desktop software. It lets developers write high-level abstractions that compile down to fast machine code, and it supports deterministic cleanup through RAII (resources are released when an object goes out of scope). The language is large and complex, and manual memory handling still allows serious bugs, so modern style favors smart pointers and standard containers over raw new and delete.

Example

#include <iostream>
#include <vector>
#include <memory>

int main() {
    std::vector<int> v{1, 2, 3};
    auto p = std::make_unique<int>(10);
    std::cout << v.size() + *p << "\n";
}

The vector and the unique_ptr free their memory automatically. The program prints 13.

Common mistakes

  • Treating C++ as "C plus classes" and using raw pointers and manual delete everywhere.
  • Returning a reference to a local variable that no longer exists.
  • Ignoring undefined behavior such as signed integer overflow.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.