C Operators
January 02, 2021
#include <stdio.h>
int main() {
/*
16 or 32 Bit | int is use integer Such As: 1,2,3,4,.....
8 Bits | char is use for Character Such as A, B, C, D, E
32 Bit | float is floating Point Number or Decimal Number Such As: 1.6, 1.4, 5.9
64 Bit | double is use for Long Decimal Number Such As 1.54554545, 8.54547574564
80 Bit | long Double
Syntax:
Method 1. Datatype VarName = Value; For 1 Variable
Method 2. Datatype VarName1,VarName2,VarName3,VarName4......; For Multiple Variable
*/
/*
Method 1: Int Practical
int a = 54321;
// Method 2 :
int b, c;
b = 654654;
c = 987654;
printf("a, b, c Value Is %1d %2d %3d", a, b, c);
*/
/*
// To Get 2 Place Value Of Integer If There You Want Limit
printf("Enter an Integer");
scanf("%2d", &a);
printf("%2d", a);
*/
/*
Use Of Char Datatype Character or String Show As : '' Is Use For %c
" " is Use For String %s ex.. "Hello Word"
char a = 'B';
char b = 'K';
char c[10] = "Hello"; //{'H','e','l','l','o','\0'}
printf("a = %c, b = %c, c = %s", a, b, c);
*/
/*
float a = 1.52454, b = 5.45;
printf("a = %f, b = %f", a,b);
*/
/*
double a = 5.12444532, b = 1224574;
printf("a = %f, b = %f", a,b);
*/
return 0;
}