/c_academic

Our dept course-based C programming repo. Here anyone can able to learn the core concepts of C programming.

Primary LanguageC

Learn C with this Repo

Welcome Everyone

It is a repo based on our c programming course

Here we will able to learn basic topics of c. If anyone can access and modify this repo you can.

All code you can access topic wise in above file or folder

@created by [@Md Moniruzzaman Sojol]

Department: Electrical And Electronic Engineering

University: Bangabandhu Sheikh Mujibur Rahman Science and Technology University, Gopalganj-8100, Dhaka, Bangladesh.

Basic Syntax and concepts of C programme

👇


#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
}

Variables and Keywords


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⏩

Operator


What is Operator?


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/

Types of operators

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⏩]

That's all from my side about operators 😃


Variables and keyword in C Programming

👇 [ discussion and code about Data_Types: Here⏩]

Data_Types in C Programming

👇 [ discussion and code about Data_Types: Here⏩]

Condition in C Programming

👇 [ discussion and code about Condition: Here⏩]

Loops in C Programming

👇 [ discussion and code about Loops: Here⏩]

Function in C Programming

👇 [ discussion and code about Function: Here⏩]

Array in C Programming

👇 [ discussion and code about Array: Here⏩]

Data_Types in C Programming

👇 [ discussion and code about Data_Types: Here⏩]

Operators in C Programming

👇 [ discussion and code about Data_Types: Here⏩]

Pointer in C Programming

👇 [ discussion and code about Pointer: Here⏩]

structure union in C Programming

👇 [ discussion and code about structure union: Here⏩]

File structure in C Programming

👇 [ discussion and code about File structure: Here⏩]