- Advantages and Disadvantages of Linked List
Linked list is a dynamic data structure so it can grow and shrink at runtime by allocating and deallocating memeory. So there is no need to give initial size of linked list.
- Code for Preprocessor Directives
Before a C program is compiled in a compiler, source code is processed by a program called preprocessor. This process is called preprocessing.
- Can include files be nested?
Include files can be nested any number of times.As long as you use precautionary measures, you can avoid including the samefile twice. In the past, nesting header files was seen as bad programmingpractice, because it complicates the dependency tracking function of the MAKEprogram and thus slows down compilation.
- What are templates in C++? Its uses and types?
Templates are the foundation of generic programming, which involves writing code in a way that is independent of any particular type.
- File Operations and Functions in C
It is not enough to just display the data on the screen. We need to save it because memory is volatile and its contents would be lost once program terminated, so if we need some data again there are two ways one is retype via keyboard to assign it to particular variable, and other is regenerate it via programmatically both options are tedious.
- C++ Terminology - 7
A region of storage used to hold data. IO facilities often store input (or output) in a buffer and read or write the buffer independently of actions in the program. Output buffers usually must be explicitly flushed to force the buffer to be written. By default, reading cin flushes cout; cout is also flushed when the program ends normally.
- C FAQ's - 6
How can I find out if there are characters available for reading (and if so, how many)? Alternatively, how can I do a read that will not block if there are no characters available?
- C FAQ's - 5
By declaring it with a variable number of arguments in the prototype. Use only the arguments declared at any given time.