Anonymous
Oh right
Anonymous
Thank you
csjcsl666
int c = 1024 * 1024 * 1024 * 4;
csjcsl666
How to calculate
BinaryByter
what?
Dima
int c = 1024 * 1024 * 1024 * 4;
stdout: 4 294 967 296
BinaryByter
what about base 83?
Pugazh
How to remove the repeated letter from a strong in c program
Pugazh
eemm?
Please tell me
BinaryByter
Please tell me
please make your question make sense
BinaryByter
your question was similar to "How many meters are in an hour if the clock is 2 feet tall?"
BinaryByter
42!
fuck you got me!
Shivam
owo
Ritu Raj
How to remove the repeated letter from a strong in c program
I think he is asking about how to remove repeated letter from "string"!!!
Ritu Raj
Use two loops
Ritu Raj
If(s[I+1]==s[j]) { s[i]='\0' }
BinaryByter
why null terminate the string though?
BinaryByter
that would mean that the string stops at the first repetition
BinaryByter
also, thats just one loop
BinaryByter
also, you should use a buffer where you put the letters into except the doubled letters
Ritu Raj
Actually I am also learning C..... And I don't have enough practice 😅😅😅
Ritu Raj
I do mistake 😅😅
BinaryByter
answering questions is good practice
BinaryByter
I do mistake 😅😅
i dont judge. infact, i make mistakes aswell
Ritu Raj
Thanks 😇
Ritu Raj
if(str[j] == str[i]) { for(k = j; str[k] != '\0'; k++) { str[k] = str[k + 1]; } }
Ritu Raj
I think this will work
BinaryByter
its slow thouhg
BinaryByter
i would go with this:
BinaryByter
char buf [100]; int bufpos; for (int i = 0; i < 100; i++) if (string [i] == string [i+1]) ; else { buf [bufpos] = string[i]; bufpos++ }
Ivan
char buf [100]; int bufpos; for (int i = 0; i < 100; i++) if (string [i] == string [i+1]) ; else { buf [bufpos] = string[i]; bufpos++ }
Tips: you didn't initialized bufpos and when i = 99, you will compare buf[99] to buf[100] and will get a out of bounds...
BinaryByter
Tips: you didn't initialized bufpos and when i = 99, you will compare buf[99] to buf[100] and will get a out of bounds...
i never compare buf to buf and i don't need to initialize buf since its an array
klimi
Hello , how do I calculate using c program linear equations?
Ivan
i never compare buf to buf and i don't need to initialize buf since its an array
Oh, yeah, I misinterpreted string with buf ;)... anyway, I was talking about initialize bufpos, not buf....
klimi
BinaryByter
Oh, yeah, I misinterpreted string with buf ;)... anyway, I was talking about initialize bufpos, not buf....
yea i didn'T initialize bufpos. its just an example, I didn't take care about making it prod safe
Arnold
hello
Demon
Can anyone send me c notes
BinaryByter
mandolin?
BinaryByter
hujujuju
BinaryByter
thats... a weird instrument
klimi
well
Demon
Can i ask for guidance from my master's .
Anonymous
Can anyone send me c notes
I send you my c diary
Anonymous
"Dear C, today I learned what a null terminator is.#+#("-"! %4++)3393!4(%;" (%"
BinaryByter
in the worst case you dump your entire 8gigs of ram ¯\_(ツ)_/¯
BinaryByter
wait no
BinaryByter
you don't
BinaryByter
since memory mapping
BinaryByter
but if you were a kernel dev
BinaryByter
yes you would dump your entire 8 gigs of ram
BinaryByter
#c++masterrace
Anonymous
lol
BinaryByter
olo
Dima
> dumps 8 gb > file size is 10 > ????
BinaryByter
wut?
Ak
Hey guys
Ak
Ak
Demon
Yes
Ak
Please anyone say how to remove this garbage value
Mihail
Arrays start from zero and so they end at size - 1
Ritu Raj
i<row instead of i<=row; j<column instead of j<=column;
Ak
Ak
Ak
Yeah tried ..but it's not working though
Mihail
Use screenshots tho
Anonymous
Mihail
Not shitty pictures
BinaryByter
—j*