Press ESC to close

Or check our Popular Categories...
P

Printf and scanf functions in C

2 Min Read
0 4902
2 Min Read
0 4902

In this article, we will discuss scanf: To read values from the console, we use the scanf() function. Scanf() is a pre-defined/in-built function that resides in the standard C library. Below is the prototype of the scanf() function Syntax: int…

Continue Reading
L

Local vs Global variables in C

1 Min Read
0 1506
1 Min Read
0 1506

The following image briefly explains the significant differences between local & global variables in C. Local variable Global variable 1. Variables declared inside the function. 1. Variables declared outside the function. 2. Scope is throughout the block. 2. Scope is…

Continue Reading
L

Local variables in C with examples

1 Min Read
0 3355
1 Min Read
0 3355

Based on the scope and lifetime of a variable, variables are categorized into two types “Scope,” tells about visibility (i.e., from where and all places the variable is visible), whereas “lifetime,” tells about durability (till how much time the value…

Continue Reading
V

Variables in C

1 Min Read
0 1126
1 Min Read
0 1126

Variables are the data objects which are used to store a value. These values can be manipulated during the program execution. We should declare the variable first before using it in our program. How to declare a variable? The Declaration…

Continue Reading