University: Bangabandhu Sheikh Mujibur Rahman Science and Technology University, Gopalganj-8100, Dhaka, Bangladesh.
👇
#include <stdio.h> 👉 This is header files. here we found the build in files in C
int main() <--Every C programme has a Main function. By this function our code or programme will be run-->
{
# Start Main function body where our code executes
// single line comment in C
# multiline comment in c
👇
/*
void function()
{
int x = 20; //local variable
static int y = 30; //static variable
auto z = 4;
x = x + 10;
y = y + x;
printf("\n%d,%d, %f", x, y);
}
*/
printf("Hello C Programme\n Welcome to Dept of EEE");
return 0; // we should put a semicolon (;) after every statement
}
// user defined function func1(), func2(), func3()
👇
int func1()
{
// code here
}
int func2()
{
// code here
}
int func3()
{
// code here
}
What is variable?
A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.
source: https://www.google.com/
You can find all discussion and code about variable and keywords: Here⏩
Operators are the foundation of any programming language. Thus the functionality of C/C++ programming language is incomplete without the use of operators. We can define operators as symbols that help us to perform specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands.
source: https://www.geeksforgeeks.org/operators-c-c/
A few types of operators available in C language eventually all are exists in other languages so.
1. Arithmetic Operators.
[ discussion and code about arithmetic Operator: Here⏩]
2. Logical Operators.
[ discussion and code about Logical Operator: Here⏩]
3. Relational Operators.
[ discussion and code about arithmetic Operator: Here⏩]
4. Bitwise Operators.
[ discussion and code about arithmetic Operator: Here⏩]
5. Assignment Operators.
[ discussion and code about Assignment Operator: Here⏩]
6. Conditional operators.
[ discussion and code about conditional Operator: Here⏩]
7. Comma Operators: Comma operators are used to link related expressions together. For example:
int a, b=70, c=33;
char first,last;
etc
8. Sizeof Operators
[ discussion and code about sizeOf Operator: Here⏩]
👇 [ discussion and code about Data_Types: Here⏩]
👇 [ discussion and code about Data_Types: Here⏩]
👇 [ discussion and code about Condition: Here⏩]
👇 [ discussion and code about Loops: Here⏩]
👇 [ discussion and code about Function: Here⏩]
👇 [ discussion and code about Array: Here⏩]
👇 [ discussion and code about Data_Types: Here⏩]
👇 [ discussion and code about Data_Types: Here⏩]
👇 [ discussion and code about Pointer: Here⏩]
👇 [ discussion and code about structure union: Here⏩]
👇 [ discussion and code about File structure: Here⏩]