C Language
C Language
Sample Code: -
# include <stdio.h>
int main () {
printf(“Hello World”);
return 0;
}
Data Types
2) Real Constants.
Example= 1.0,2.0,3.0,3.14, -2.4.
3) Character constants.
Example= ‘a’, ‘b’, ‘c’, ‘A’, ‘#’, ‘&’, ‘_’.
Tip: - When we will write character constants we will always
have to write it in a single quote. Example: - ‘a’.
Program Structure: -
#include <stdio.h>
int main () {
return 0;
}
Comments – Lines that are not part of the program but are used to
give some extra instruction to the program.