geeksforgeeks
search icon
  • Courses
    Sale
  • Tutorials
  • Practice
  • Jobs
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Practice Questions for Recursion | Set 6Question 1Consider the following recursive C function. Let len be the length of the string s and num be the number of characters printed on the screen. Give the relation b... Read More
MiscRecursionDSA
Output of C++ Program | Set 9Predict the output of following C++ programs. Question 1CPP template class S, class T class Pair{private: S x; T y;/* ... */};template class S class Eleme... Read More
C++CPP-Output
A Boolean Matrix QuestionGiven a boolean matrixmatwhere each cell contains either 0 or 1, the task is to modify it such that if a matrix cell matrix[i][j] is 1 then all the cells in its ithrow and... Read More
MatrixDSAArraysAmazonMorgan StanleyVMWareSAP LabsOla CabsFactSetBoomerang Commerce
Output of C Program | Set 22Predict the output of following C programs.Question 1:C #includestdio.hint main(){ enum channel {star, sony, zee}; enum symbol {hash, star}; int i = 0;... Read More
C LanguageC-Output
Local Classes in C++A local class is a class declared inside a function. It is visible only within the function in which it is declared and is commonly used when a class is required only for ... Read More
C++
Size of an Empty Class in C++When the structure was introduced in C, there was no concept of Objects at that time. So, according to the C standard, it was decided to keep the size of the empty structu... Read More
C++
Trie Data StructureThe Trie data structure is used to store a set of keys represented as strings. It allows for efficient retrieval and storage of keys, making it highly effective in handlin... Read More
Advanced Data StructureDSATrieAmazonD-E-ShawFactSet
Const Qualifier in CThe qualifier const can be applied to the declaration of any variable to specify that its value will not be changed (which depends upon where const variables are stored, w... Read More
C LanguagepointerC-Storage Classes and Type Qualifiers
Functions that are executed before and after main() in CWith GCC family of C compilers, we can mark some functions to execute before and after main(). So some startup code can be executed before main() starts, and some cleanup ... Read More
C LanguageC-Functions
Templates and Default ArgumentsDefault parameters for templates in C++:Like function default arguments, templates can also have default arguments. For example, in the following program, the second para... Read More
C++
C / C++ Program for Subset Sum | Backtracking-4Write a C/C++ program for a given set[] of non-negative integers and a value sum, the task is to print the subset of the given set whose sum is equal to the given sum.Inpu... Read More
C++
Subset Sum Problem using BacktrackingGiven a set[] of non-negative integers and a value sum, the task is to print the subset of the given set whose sum is equal to the given sum.Examples:Input:set[] = {1,2,1}... Read More
BacktrackingDSAAmazonAdobeDrishti-Softsubset
Output of C Program | Set 21Predict the output of following C programs. Question 1C #includestdio.h#define fun (x) (x)*10int main(){ int t = fun(5); int i; for(i = 0; i t; i++) ... Read More
C LanguageC-Output
Output of C++ Program | Set 8Predict the output of following C++ programs. Question 1CPP#includeiostreamusing namespace std;class Test1{ int x;public: void show() { }};class Test2{ int x;pub... Read More
C++CPP-Output
Design and Implement Special Stack Data StructureDesign a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should retur... Read More
StackDSAAmazonAdobeVMWarePaytmLinkedinSTL
1

...

121221212312124

...

12127
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Careers
  • Contact Us
  • Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Practice Problems
  • Blogs
  • Upskill Courses
  • Connect
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • GATE
  • School Subjects
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Data Science
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • MongoDB Certifications
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved