Things to note about Functions in C plus plus (C++)

While passing arguments, the function creates copies of the arguments passed to it. This type of passing arguments is called passing by value. We can pass structure as arguments. We can also return a structure. Useful while returning multiple values. Passing by reference : e.g. void intfunc(float& a, int& b); We can also pass structures … Read moreThings to note about Functions in C plus plus (C++)

Things to note about Structure in C plus plus (C++)

Initializing structure structure_name variable_name = {value1,value2,…,valueN}; Initializing nested structure structure_name variable_name = { {value1, value2},{value3,value4}}; A structure can be nested up to any depth in theory. Structure can hold data and functions (In c they can only hold data) An enum declaration defines the set of all names that will be permissible values of the … Read moreThings to note about Structure in C plus plus (C++)

Kernel Architecture of Various Popular Operating Systems.

Overview : UNIX : Layered Architecture Linux : Monolithic Architecture Windows : Hybrid Architecture (Microkernel + Layered) Mach : Microkernel Architecture. UNIX KERNEL ARCHITECTURE : Unix OS considers files and processes as the most important entities.   Unix offers a shell that acts as a command interpreter between the user and the kernel. The relevant … Read moreKernel Architecture of Various Popular Operating Systems.

Types of Operating System Architecture Models

There are mainly three types of operating system architecture models : Monolithic OS : Used in older but smaller operating systems. Operating system is divided into procedures. Each procedure have a particular task and all procedures have common data structures and system tables. Each procedure can call other procedures. Resulting in high degree of inter-process … Read moreTypes of Operating System Architecture Models

Important Things to Note About Loops and Decision in C++

Before C++ true and false were represented as 1 and 0 respectively. But C++ uses both. Other than 0 all values represent true. Library function exit() : exit(0) : Normal Exit exit(other numerical value) : Error / Abnormal exit. This function is present in ‘process.h’ Library function getche(): This function is present in conio.h No … Read moreImportant Things to Note About Loops and Decision in C++

C++ Basics Which May Have Been Skipped In Class

White-space is completely ignored by compiler : Not True. There are few restrictions apply to this rule. e.g. Preprocessor directives must be in same line. ‘cout’ could not be broken. Cout, Cin are objects : These are overloaded. Cout – ‘<<‘ (Put to or insertion operation) and ‘>>’ (extraction or get operator). Directives : Preprocessor … Read moreC++ Basics Which May Have Been Skipped In Class