Wednesday, February 5, 2014

c++ Questions

c++ C++ Interview Questions & Answers What is C++? Released in 1985, C++ is an object-oriented programming language seduced by Bjarne Stroustrup. C++ maintains or so all aspects of the C language, while simplifying retention direction and adding several(prenominal) features - including a new datatype known as a pay heed apart (you will learn more ab startle these later) - to allow objectoriented programming. C++ maintains the features of C which allowed for low-level retrospection admission 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 lessened programs or volumed applications. It keister be used to start aside 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 sgoal together a partial call of a pplications 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 back up one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes each time will in conclusion meet the one that goes slower. If that is the case, and so you will know the linked-list is a cycle. What is the difference between realloc() and relieve()? The free role frees a abash of memory previously allocated by the malloc subroutine. Undefined results occur if the pointer disceptation is not a valid pointer. If the pointer argumentation 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 c reated 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: BestEssayCheap.com

If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.