How to use a pointer to structure in C Programming? When pointer to structure is incremented then the pointer points to the next block of memory. As for example struct rec { int a; char b[10], *c; }; main() { struct rec *obj; obj=(struct rec *)malloc(sizeof(struct rec)); obj->a=10; strcpy(obj->b, “XYZ”); strcpy(obj->c, “ABC”); printf (“n%dt%st%s”,obj->a, obj->b, […]
Table of Contents1 Page Replacement Algorithms in OS1.1 Frequently Asked Questions1.2 What is Page Replacement Algorithm ?1.3 What is Page Fault ?1.4 What is Page Fault Rate ?1.5 What is Reference String ?1.6 Types of Page Replacement Algorithms in OS1.6.1 Page Replacement Algorithm Example 1.6.2 FIFΟ Page Replacement Algοrithm 1.6.3 Οptimal Pagе Rеplacеmеnt Algοrithm1.6.4 LRU Page […]
Accessing the value of an integer through pointer. A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type. The unary or monadic operator & gives the “address of a variable”. The indirection or dereference operator * gives the “contents of an object pointed to by […]