Fflush in C

Fflush in C The function fflush is used for flushing the stream’s output buffer; that is, it is used to immediately flush the contents present in any of the buffered stream to the corresponding file. It will return zero if successful, else it returns EOF, and the...

NULL Character in C

NULL Character in C In the C programming language, character strings are terminated by using NULL Character. Integer constant zero (0) has many usages depending upon how the programmer uses it. A NULL byte is represented by ‘\0’ or ‘0’ (zero) or NULL. A NULL character...

Function Pointer in C

Function Pointer There is a concept of the pointer in the C programming language to a function called “function pointer”. Data pointers such as int *, char *, etc., have pointers to functions. Function pointers point to the code like normal pointers. In other words,...

Const pointer in C

Const pointer in C The constant keyword is used as “const,” and it specifies that the pointer cannot be modified after initialization; that is, the pointer is protected from modification. The const keyword can be applied to the declaration of any variable to specify...

Dereference pointer in C

Dereference pointer in C Dereferencing is a method used to manipulate or access data contained in a memory location that it is pointed to by a pointer. Asterisk (*) is used along with a pointer variable to dereference a pointer variable; it refers to a variable that...

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...

Pin It on Pinterest