Volatile in C

Volatile in C: Volatile keyword in C lets the compiler know that the variable’s value might change at any point in time due to many external conditions, and the change is not only a result of the program’s control flow. The compiler associated will not...

Infinite Loop in C

Infinite Loop in C: “Infinite loop,” as the name suggests, refers to an endless loop. It is a sequence of instructions that will not end unless an external intervention happens. In other words, it is a loop that iterates indefinitely and does end. It is also known as...

Call by value in C

Call by value in C Call by value passes arguments to a function, and it copies the actual value of an idea into a formal parameter of a function. Changes made to a formal parameter inside the function do not affect the argument. That is, operations performed on formal...

Extern Keyword in C

Extern Keyword in C: The C programming language’s extern keyword is used to declare a global variable; that is, it is a variable without any memory assigned to it. Extern keyword, also known as a global variable, is used to access variables across different C files....

Memory layout in C

Memory layout in C The C language is designed so that it becomes easier for a programmer to decide the amount of memory they want to use in a program. C program consists of: Text segmentInitialized data segmentUninitialized data segmentHeapStack Text Segment: A text...

Segmentation Fault in C

Segmentation Fault in C In the C programming language, segmentation fault or segmentation violation or core dump is a condition that the hardware component raises to protect the memory by indicating to the operating system that the software has attempted to access the...

C Programming MCQ (Multiple Choice Questions)

MCQ on C language 1) Who is known as the father of the C language? James Rutherford Dennis Ritchie Mark Zuckerberg James A. Gosling Show Answer Workspace Answer: (B) Dennis Ritchie Explanation: Dennis Ritchie is known as the father of the C language. 2) The C language...

Pin It on Pinterest