1 long long samaj nhi aaya kyu lagaya h yeh ??
Long long demon= 1 long long yeh kya h?
hello @anujsharmabadboy
agar hum keval 1 likh te hai to wo int treat hota hai.
long long use karke hum usko typecast karte hai long long me.
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<(1<<40)<<"\n"; // ye overflow ho jayega kyunki 1<<40 int ke range se bada hai
cout<<((1LL)<<40)<<"\n"; // ye overflow nahi karega kyunki humne long long me typecast kar diya hai
}
ye code run karo difference pata chal jayega.
note-> LL means long long
samaj aa gya bhai
lekin batao mene yeh headrer file kaafi jagah dekhi h konse function hote h isme ??
#include<bits/stdc++.h>
bus ye file include karo phir koi aur header file include karne ki jarurat nahi padegi
thank u bhai
smaj gya
lekin bhai ek baat batao hum 1 long long likhe ya na likhe demon variable toh long long hi rahega na
so what does it make difference by 1 long long and by 1 only ???
kyunki denom = 1ll h (1<<40 nhi h yaha pe)
long long p=1;
aur
long long p= 1 long long ;
mein koi difference nahi hai.
dono hi long long mein convert ho jayenge
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.