Memory Layout of C++ Memory Layout of C++ : Let us understand how C++ organizes memory for its programs. After compiling a program, C++ create four logically distinct regions of memory that are used for different distinct specific functions. These are : Program Code Region Global Variables Region Heap Region Stack Region Regions : Program code…

Memory Layout in c

Memory Layout in c Memory Layout in C : Let us understand how C organizes memory for its programs. After compiling a program, creates distinct regions of memory that are used for different distinct specific functions. These regions are : Program code segment/region Data segment/region Initialised data or data segment Uninitialised data or .bss segment Stack…

Difference Between Array and Linked List Difference Between Array and Linked List : There are so many advantages and disadvantages between array and linked list and based on those factors I am trying to summarize the difference between array and linked list which are described as : Basis Arrays Linked Lists Insertion/Deletion in array and Linked List :…

Linked List

What is a Linked List in C ? Linked List = List is Linked. The term ‘list’ refers to a linear collection of data. One form of linear list are arrays in which elements are stored in memory by means of sequential (contiguous) memory locations. Another form of linear list are linked lists. “Linked list…

Pointer to Structure Structure is a User Defined Data Type. Before discussing Pointer to Structure, you must know about Structures. Example of a Structure : struct node { int a; float b; char c[2]; }; Point No 1 : It is a mixture of various data types. Point No 2 : Memory of a structure (Assume 16-bit Processor)…

Difference Between Structure and Union Before discussing difference between structure and union, Let us discuss some similarities between them. Similarities between Structure and Union: Both structure and union are user defined data types. Both structure and union are container data types and both contains variable of different data types. Both structure and union have same…

Programs on Pointer to Array or on Multidimensional Arrays using Pointers Before Solving the Programs on Pointer to Array or on multidimensional array using pointers, Read out the Basics on the following link : Link : http://www.edugrabs.com/pointer-to-array-or-access-multidimensional-arrays-using-pointers/ Program Number 1 : Let the base address of array arr2D[3][3] is 1000. main() { int arr2D[3][3]; printf(“%d”, (arr2d==*arr2d)…

Function Pointer in C Function Returning Pointer Consider a simple program : main() { int *x; x=fun(); printf(“%u”,x); } int* fun() { int y=10; return &y; } Output of the Program : 2000 Explanation : So, It means that function is returning a pointer. Functional Pointer Consider a simple program to understand the meaning of…

Notes on DBMS pdf, Questions and Answers – Btech Students Theoretical Questions and their Answers of DBMS  Theoretical Questions on DBMS Difference between file System and DBMS ER Model Questions and Answers  How to Make ER Diagram ? ER Model Questions and answers -1  ER Model- Questions and Answers – 2 Relational Algebra Queries  Relational Algebra…

Relational Algebra Queries Examples Question 1 : Consider the following relational Schema and give the answers of following : Dealer(Dealer_no, Dealer_name, Address) Part(Part_no, Part_Name, Color) Assigned_To(Dealer_no, Part_no, cost) a) Find names of dealers that supply red parts. Answer b) Find names of dealers that supply whole red parts. Answer c) Find names of dealers that…