Un-Answered Questions { Programming Languages }

How to delete array of objects in C++? Proof by C++ code for proper deletion

330


How to stop class inheritance in C++ with condition that object creation should be allowed

296


What is Advantage and Use of THIS pointer in C++ – Scenarios?

306


C++ Public access specifier instead of Private – What is bad ?

410


Is there a difference between class and struct?

488


How many times will this loop execute? Explain your answer.

376


How can a C function be called in a C++ program?

326


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

389


What is the difference between global int and static int declaration?

413


Specify different types of decision control statements?

355


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

335


What will the line of code below print out and why?

328


What is the error in the code below and how should it be corrected?

304


what is different between auto and local static? why should we use local static?

644


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

600