Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Constructors
37 articles
Inheritance
32 articles
C++-Constructors
29 articles
C++-Virtual Functions
26 articles
C++-Inheritance
22 articles
Virtual Functions
16 articles
Programming Language
>
C++
>
C++ Quiz
C++ Quiz
140+ posts
Popular Articles
Recent Articles
C ++
Last Updated: 08 July 2024
Quizzes on C++ LanguageConstructors(17)References(6)Class and Object(6)Misc C++(7)Destructors(5)Operator Overloading(10)this pointer(5)Funct
...read more
C++ Quiz
Difference between int* p() and int (*p)()?
Last Updated: 11 December 2020
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or co
...read more
Algorithms
C Basics
cpp-pointer
C Language
C++
Pointers
C Quiz
C++ Quiz
C++-new and delete
DSA
C/C++ Puzzles
Examples of Big-O analysis
Last Updated: 02 November 2023
Prerequisite: Analysis of Algorithms | Big-O analysisIn the previous article, the analysis of the algorithm using Big O asymptotic notation
...read more
Articles
time complexity
Analysis of Algorithms
C++
Placements
CS - Placements
C++ Quiz
Analysis of Algorithms
Algorithms-Analysis of Algorithms (Recurrences)
C++ Programs
DSA
C/C++ Puzzles
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Constructors
37+ articles
Inheritance
32+ articles
C++-Constructors
29+ articles
C++-Virtual Functions
26+ articles
C++-Inheritance
22+ articles
Virtual Functions
16+ articles
How to access private/protected method outside a class in C++
Last Updated: 05 August 2021
Prerequisites: Access Modifiers in C++, Runtime PolymorphismPrivate: The class members declared as private can be accessed only by the funct
...read more
C++
C++ Quiz
C++-Class and Object
access modifiers
C++ Programs
C/C++ Puzzles
Search by value in a Map in C++
Last Updated: 24 January 2023
Given a set of N pairs as a (key, value) pairs in a map and an integer K, the task is to find all the keys mapped to the given value K. If t
...read more
Algorithms
Searching
Sorting
Binary Search Tree
Advanced Data Structure
Competitive Programming
C++
C++ Quiz
C++ Programs
cpp-map
Write From Home
DSA
C/C++ Puzzles
Why are negative numbers stored as 2's complement?
Last Updated: 03 October 2018
When doing addition/subtraction on binary numbers in other representations we need to apply different logics (circuits) to perform addition
...read more
Misc
Programming Language
Puzzles
C++
C Quiz
C++ Quiz
C Programs
C++ Programs
C/C++ Puzzles
Largest of two distinct numbers without using any conditional statements or operators
Last Updated: 13 August 2024
Given two positive and distinct numbers, the task is to find the greatest of two given numbers without using any conditional statements(if..
...read more
Puzzles
School Programming
Aptitude
C++ Quiz
C++ Programs
C++ | Virtual Functions | Question 12
Last Updated: 28 June 2021
Predict the output of following C++ program. Assume that there is no alignment and a typical implementation of virtual functions is done by
...read more
C Language
C++ Quiz
C++-Virtual Functions
Virtual Functions
C++ | Inheritance | Question 7
Last Updated: 28 June 2021
[sourcecode language="C"]#includeiostreamusing namespace std;class Base{public: void show() { cout In Base ; }};class Derive
...read more
C Language
C++ Quiz
C++-Inheritance
Inheritance
C++ | Inheritance | Question 1
Last Updated: 28 June 2021
[sourcecode language="CPP"]#includeiostream using namespace std;class Base1 { public: Base1() { cout Base1's constructor called e
...read more
C Language
C++ Quiz
C++-Inheritance
Inheritance
C++ | Static Keyword | Question 3
Last Updated: 29 July 2020
Which of the following is true?(A) Static methods cannot be overloaded.(B) Static data members can only be accessed by static methods.(C) No
...read more
C++ Quiz
C++-Static Keyword
Static Keyword
C++ | Function Overloading and Default Arguments | Question 2
Last Updated: 28 June 2021
Output?[sourcecode language="CPP"]#includeiostreamusing namespace std;int fun(int x = 0, int y = 0, int z){ return (x + y + z); }int main()
...read more
C Language
C++ Quiz
C++-Function Overloading and Default Arguments
Function Overloading and Default Arguments
C++ | References | Question 4
Last Updated: 28 June 2021
Predict the output of following C++ program.[sourcecode language="C"]#includeiostreamusing namespace std;int fun(){ static int x = 10;
...read more
C Language
C++ Quiz
C++-References
References
C++ | Operator Overloading | Question 2
Last Updated: 28 June 2021
Which of the following operators cannot be overloaded(A) . (Member Access or Dot operator)(B) ?: (Ternary or Conditional Operator )(C) :: (S
...read more
C Language
C++ Quiz
C++-Operator Overloading
Operator Overloading
C++ | Constructors | Question 1
Last Updated: 04 January 2013
Which of the followings is/are automatically added to every class, if we do not write our own.(A) Copy Constructor(B) Assignment Operator(C)
...read more
C++ Quiz
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !