c learning with in 30 days, my self joga yogesh i'm a mechanical guy, im intrested in computers, im already i know some computer lang's but a little bit gap to practice a code, now i'm started again lets start!!
Use the vs code go to site click the download button start downloding, After download and install the vs code, open the vs code and click on the Extension logo button, click into the search button, search the gcc from microsoft extension download and install.
C Tutorials
C Introduction
Limitation of C Programming Language
History of C Programming
C Installation
C Tokens
C Identifiers
C Keywords
C Constants
C Operators
C Data Types
C Variables
C Type Casting
C Program Structure
C Input and Output (I/O)
C Format Specifiers
C Decision Making
C if Statements
C if-else Statements
C Nested if-else Statements
C else-if Statements
C goto Statement
C switch Statement
C Loops
C while loops
C do while loops
C for loops
C functions
C functions Arguments
C Library Functions
C Variable Scope
C Recursion
C Storage Classes
C preprocessors
C Header Files
C Custom Header Files
C Arrays
C strings
C Pointers
C Memory Management
C Dynamic Memory Allocations
C Structures
C Unions
C typedef
C File Handling
C fopen
C fclose
C gets
C puts
C getc
C putc
C getw
C putw
C fprintf
C fscanf
C feof
C Commands Line Arguments
C 99 Features
C Error Handling
Bit Fields in C
//write the code
#include<stdio.h>
int main(){
int a,b,c;
a = 2;
b = 3;
c = a + b;
printf("a+b= %d", c);
}
output like
a+b= 5
-Go to the Terminal in main bar, hit it and new terminal select the POWERSHELL, -Go to the POWERSHELL open as a adim and right click the main bar, navigate the properties. -uncheck to check the USE LEGACY CONSOLE
#include<stdio.h>
void main()
{
int a,b,c;
printf("Please enter any two numbers: \n");
scanf("%d %d", &a, &b);
c = a + b;
printf("The addition of two number is: %d", c);
}
Please enter any two numbers:
10
5
The addition of two number is: 15
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//function
int a();
int main(){
int b;
b = a();
printf("Adding two numbers by using function : %d \n", b);
return 0;
}
int a(){
int a1 = 10, b1 = 20;
return a1 + b1;
}
Adding two numbers by using function : 30
#include<stdio.h>
//function declaration
int addition(int *num1, int *num2);
int main()
{
//local variable definition
int answer;
int num1 = 10;
int num2 = 5;
//calling a function to get addition value
answer = addition(&num1,&num2);
printf("The addition of two numbers is: %d\n",answer);
return 0;
}
//function returning the addition of two numbers
int addition(int *a,int *b)
{
return *a + *b;
}
The addition of two numbers is: 15
#include<stdio.h>
//function declaration
int addition(int num1, int num2);
int main()
{
//local variable definition
int answer;
int num1 = 10;
int num2 = 5;
//calling a function to get addition value
answer = addition(num1,num2);
printf("The addition of two numbers is: %d\n",answer);
return 0;
}
//function returning the addition of two numbers
int addition(int a,int b)
{
return a + b;
}
The addition of two numbers is: 15
Made with ❤️ By YOGESH JOGA
CODE C Starting Day 24/10/2021