Category Archives: GFacts

G-Fact 17

Storage class of a variable determines whether the item has a global or local lifetime. In C, typedef is considered as a storage class like… Read More »

G-Fact 16

Predict the output of following program.

G-Fact 15

Atomic Operation What is an atomic operation? An idea of atomic operation helps in understanding reentrancy, critical section, thread safety, synchronization primitives, etc… (we will… Read More »

G-Fact 14

In C, a structure cannot have static members, but in C++ a structure can have static members.

G-Fact 13

const Behaviour in C and C++ In C, the const qualified identifiers will have external linkage, where as in C++ it will have internal linkage.… Read More »

G-Fact 12

In C, struct keyword must be used for declaring structure variables, but it is optional in C++.

G-Fact 11

Following relationship holds in any n-ary tree in which every node has either 0 or n children. L = (n-1)*I + 1

G-Fact 10

Enumeration constants (enum values) are always of type int in C, whereas they are distinct types in C++ and may have size different from that… Read More »