-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.cpp
More file actions
59 lines (37 loc) · 842 Bytes
/
basic.cpp
File metadata and controls
59 lines (37 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include<iostream>
using namespace std;
int main(){
// int a =123;
// cout<< a <<endl;
// char b ='v';
// cout<<b <<endl;
// bool bl = true;
// cout<<bl<<endl;
// float fl = 12.3;
// cout<<fl<<endl;
// double db = 12.22;
// cout<<db<<endl;
// int size = sizeof(a);
// cout<<"Size of a is :"<<size<<endl;
// int c = 'a';
// cout<<a<<endl;// typecasting
// char ch = 98;
// cout<< ch<<endl;
// // agar jada valuee ka daldiya to kya hoga
char ch2= 123456;
cout<< ch2<< endl;
unsigned int r =-1234445;
cout<<r<<endl;
int a1 =2/5;
cout<<a1<<endl;
float b1=2.0/5;
cout<<b1<<endl;
int w = 2;
int q= 3;
bool o =(w==q);
cout<<o<<endl;
int a= 0;
cout<<!a<<endl;
int b=223;
cout<<!b<<endl;
}