When are temporary variables created by C++ compiler?
Provided that function parameter is a “const reference”, compiler generates temporary variable in following 2 ways. a) The actual argument is the correct... Read more »
Provided that function parameter is a “const reference”, compiler generates temporary variable in following 2 ways. a) The actual argument is the correct... Read more »
a) Using const protects you against programming errors that inadvertently alter data. b) Using const allows function to process both const and non-const actual arguments,... Read more »
They are.. const volatile mutable Const keyword indicates that memory once initialized, should not be altered by a program. volatile keyword indicates that the value... Read more »
auto register static extern auto: the default. Variables are automatically created and initialized when they are defined and are destroyed at the end of the block... Read more »
There is no way for the compiler to verify that the macro parameters are of compatible types. The macro is expanded without any special type checking. If macro parameter... Read more »
Class can have a public method for specific data type conversions. for example: class Boo { double value; public: Boo(int i ) operator double() { return value; } }; Boo... Read more »
Constructor with a single argument makes that constructor as conversion ctor and it can be used for type conversion. for example: class Boo { public: Boo( int i... Read more »
Default assignment operator handles assigning one object to another of the same class. Member to member copy (shallow copy) Read more »
Copy constructors are called in following cases: a) when a function returns an object of that class by value b) when the object of that class is passed by value... Read more »
Constructor which initializes the it’s object member variables ( by shallow copying) with another object of the same class. If you don’t implement one... Read more »
Custom Controls can be created in either of the following 3 methods. 1. Creating as a composite control : This method uses and combines the existing controls to... Read more »
RequiredField Validator Control,Range Validator Control, RegularExpression Validator Control,Custom Validator Control and Validation Summary Control are provided... Read more »
AutoPostBack is built into the form-based server controls, and when enabled, automatically posts the page back to the server whenever the value of the control in... Read more »
Using the Built-In Paging Controls To use default paging, you set properties to enable paging, set the page size, and specify the style of the paging controls. Paging... Read more »
Login controls are an easy way to implement Forms authentication without having to write any code. For example, the Login control performs the same functions you... Read more »