Programming

286   Articles
286
P

Printf and scanf functions in C

2 Min Read
0 4901
2 Min Read
0 4901

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
I

Identifiers in C

1 Min Read
0 1369
1 Min Read
0 1369

Identifiers are user-defined names (with a sequence of letters and digits) given to the variables, arrays, functions, structures, unions, etc. For example: In terms of computers, it uses a range of addresses to identify the data. But as a programmer,…

Continue Reading
K

Keywords in C

1 Min Read
0 1608
1 Min Read
0 1608

In C, two types of names a programmer can use in his program. They are Keywords – Definition : Keywords are the pre-defined or reserved names given by the creators of the C language. Keywords will play a major role…

Continue Reading
Exit mobile version