When should we use container classes instead of arrays?
No Answer is Posted For this Question
Be the First to Post Answer
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
What is RAII (Resource Acquisition Is Initialization)?
Is python better than c++?
Explain queue. How it can be implemented?
What is the difference between #import and #include?
What is the Standard Template Library?
What does catch(…) mean?
write a function signature with various number of parameters.
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is the limitation of cin while taking input for character array?
the maximum length of a character constant can be a) 2 b) 1 c) 8