A pointer is a constant or variable that contains an address of another variable of same type and in future, same address can be used to access the variable. Syntax for pointer declaration: So, using above syntax we can declare any type (built-in or derived) of pointer variable. In following figure, three built-in type of pointer variable has been created …
Increment and decrement operators in C
Increment and decrement operators are unary operator i.e. these operators requires on one operands to perform its operations. The detail demonstration would be provided following videos.
POD-29-Sep-2016
Write a program to sort characters of each word of a user provided sentence. Sentence can be of variable length and may contain any number of words. Ex: Hello, how are you? eHllo, how aer ouy? Note: sentence breaking symbols, like: , . ? etc should remain at their original position. Hint: Break the problem into small tasks as: 1st …
What is the computer language?
A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Over the years computer languages have evolved from machine language to natural languages. The only language which is understood by computer hardware is machine language (consisting of binary or hexadecimal instructions). Symbolic language uses symbols, or mnemonics, to …
What is placement new operator in C++ ?
Placement new operator is used to allocate a memory which is already acquired by some object. This operator generally used when we require any object to be re-constructed multiple times. Without placement new operator it will be allocated to different memory location while reconstructed. Hence we use placement new to utilize the memory which is allocated to it earlier. A simple …
POD-22-Sep-2016
Write a Program to add two user entered complex numbers of the form: ax+iby, (Where a,b can be any float values, including negative numbers).
Static vs Dynamic Loading
Selection of Static or Dynamic Loading is made by developer at the time of computer program being developed. In case of static loading, the complete program is compiled and linked without leaving any external program or module dependency at the time of compilation. With static loading, the absolute program (and data) is loaded into memory in order for execution to …