⟩ Why doesnt that code work?
Why doesn't the code
short int s;
scanf("%d", &s);
work?
When converting %d, scanf expects a pointer to an int. To convert to a short int, use %hd .
Why doesn't the code
short int s;
scanf("%d", &s);
work?
When converting %d, scanf expects a pointer to an int. To convert to a short int, use %hd .
Tell how to check whether a linked list is circular.
What is virtual constructors/destructors?
What is the difference between an ARRAY and a LIST?
What is a template in C++?
Does c++ support multilevel and multiple inheritance?
Define a constructor - What it is and how it might be called (2 methods).
You have two pairs new() and delete() and another pair alloc() and free(). Explain differences between eg. new() and malloc()
What is the difference between class and structure in C++?
What is RTTI in C++?
What is encapsulation in C++?