Keywords
Keywords are reserved words within a programming language that hold predefined meanings. It’s basically important to note that they cannot be used as names or identifiers.
#include <iostream>
int main() {
int y = 8; // 'int' is a keyword for defining an integer variable
return 0;
}
#include<stdio.h>
int main() {
int x = 5; // 'int' is a keyword indicating the variable type
return 0;
}
public class GfgClass {
public static void main(String[] args) {
int z = 12; // 'int' is a keyword indicating the variable type
}
}
def gfgKeyword():
pass # 'def' is a keyword used to define a function
// JavaScript doesn't require explicit data type declaration
// so there's no need to specify 'int' for variable declaration
// Define a variable 'y' and assign the value 8 to it
let y = 8;
// There's no need for a return statement in JavaScript for this case
// as it is not a required
Here, in the above code we can see there are some reserved keywords that have some already defined meaning such as int, return in C, C++ and Java and def and if..else in python.
How to Start Coding
In this ever-evolving digital landscape, the ability to code is not just a valuable asset but a gateway to creative expression and innovation. This brief guide will outline practical steps and essential principles to guide aspiring learners on their path to mastering the art of coding.
Table of Content
- Introduction, to Basic Syntax. Hello World
- Understanding Data Types
- Variables and Constants
- Keywords
- Operators
- Decision Making statements
- Loops
- Numbers
- Characters
- Arrays
- Strings- Basic String Concepts
- Functions
Contact Us