Tuesday, February 26, 2013

c++ Questions

c++
C++ Interview Questions & Answers
What is C++?
Released in 1985, C++ is an object-oriented programming language created by
Bjarne Stroustrup. C++ maintains or so all aspects of the C language, while
simplifying retention management and adding several(prenominal) features - including a new
datatype known as a fall apart (you will learn more ab pop these later) - to allow objectoriented programming. C++ maintains the features of C which allowed for low-level
memory access but too gives the programmer new tools to simplify memory
management.
C++ utilise for:
C++ is a powerful general-purpose programming language. It git be used to create
small programs or volumed applications. It keister be used to make CGI scripts or consoleonly disk operating system programs. C++ allows you to create programs to do almost anything you
need to do. The shaper of C++, Bjarne Stroustrup, has put together a partial call of
applications written in C++.
How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
You can find out by using 2 pointers. mavin of them goes 2 nodes each(prenominal) time. The
second one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes
each time will eventually meet the one that goes slower. If that is the case, and so you
will know the linked-list is a cycle.

Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.


What is the difference between realloc() and relieve()?
The free subroutine frees a block of memory previously allocated by the malloc
subroutine. Undefined results occur if the Pointer parameter is not a valid pointer. If
the Pointer parameter is a null value, no action will occur. The realloc subroutine
changes the size of the block of memory pointed to by the Pointer parameter to the
number of bytes specified by the Size parameter and returns a new pointer to the
block. The pointer specified by the Pointer parameter must fall in been created with
the malloc, calloc, or realloc subroutines and not been deallocated with the free or
realloc subroutines. Undefined results...If you wishing to get a full essay, order it on our website: Orderessay



If you want to get a full essay, wisit our page: write my essay .

No comments:

Post a Comment