{"success":true,"message":"Connection to C++ QnA route successful.","qnadata":[{"id":1,"question":"What is the difference between C and C++?","answer":"C is a procedural programming language, while C++ is a multi-paradigm language that supports procedural, object-oriented, and generic programming. C++ introduces features such as classes, inheritance, polymorphism, and templates.","difficulty":"easy"},{"id":2,"question":"What is the difference between a pointer and a reference in C++?","answer":"A pointer stores the memory address of an object and can be null or reassigned. A reference is an alias for an existing object, must be initialized when declared, cannot be null, and cannot be changed to refer to another object.","difficulty":"easy"},{"id":3,"question":"What is a constructor in C++?","answer":"A constructor is a special member function that is automatically called when an object is created. It is used to initialize the object's data members.","difficulty":"easy"},{"id":4,"question":"What is the difference between stack memory and heap memory?","answer":"Stack memory is automatically managed by the compiler and stores local variables. Heap memory is dynamically allocated during runtime using new and must be manually released using delete to avoid memory leaks.","difficulty":"easy"}]}