Alion🦁
? I can't understand
Alion🦁
yeah, it is but, not in this situation. If we write int num='a' => you're right num will equal to 97. DO you mean this?
Alion🦁
if i am wrong correct me 🙏
Anonymous
does 'a' use 7 bits? or does it use 8-bits (1 byte)? or does it use the entirety of 4 bytes? do the 0's at front count as being used? what if the implementation did parity checking? how many bits would you count as being "used" by 'a'
Anonymous
'a' is an integer constant with type of int
what is not abstract and guaranteed by the standard is this
Anonymous
Anonymous
for example 'a' might fit in char, but 'aa' might not fit in char
Anonymous
yeah, but, i think, machine needs 1 byte to show it (am i right?)
once again, the word 'show' doesn't make sense
Anonymous
the C standard is somewhat like a legal document, each word needs to have a precise, unambiguous enough meaning
Alion🦁
okay, i get it. Thanks for your attention 💚
Alion🦁
section 6.4.4.4
can I be sure what is this book for?
Anonymous
can I be sure what is this book for?
it's the final draft of the C17 standard
Alion🦁
Dima
/ban 817449746 courses link
Anonymous
anyone with visual studio. ( not visual studio code ) can send me a screenshot of C# hello world program plz ?
Anonymous
Anonymous
cant understand the error
Dima
remove ; from if condition
Anonymous
😯
Anonymous
but i am getting wrong output🤔
Anonymous
any logical error?
Anonymous
find logical error
Dima
no
Anonymous
find logical error
I give you some clues: 1. NEVER hardcode ASCII codes, 2. use a bool array of size UCHAR_MAX + 1, 3. mark every valid char in array, 4. use unsigned char as scanf argument (or use getchar), 5. simply check against array
Anonymous
C programming question:- A cashier has currency notes of denominations 10,50 and 100. If the amount to be withdrawn is input through the keyboard in hundreds, find the total number of currency notes of each denomination the cashier will have to give to the withdrawer.
klimi
klimi
as you wish master
Anonymous
why the first?
according to C standard it is unspecified if runtime environment supports ASCII charsets, or even characters 'a', 'b', ..., 'z' are consecutive or not
MilkBeforeCereal
klimi
most of the cases the standard ASCII table is still a standard
MilkBeforeCereal
Anonymous
most of the cases the standard ASCII table is still a standard
C is designed to be portable to every platform, not just platforms with ASCII charset support
klimi
C is designed to be portable to every platform, not just platforms with ASCII charset support
if you dont want ascii charset support why do you need to know its value
Anonymous
if you dont want ascii charset support why do you need to know its value
As I see, his/her problem was about characters, not ASCII characters
klimi
alright. that makes sense
Anonymous
Not in python 🙄
MilkBeforeCereal
Not in python 🙄
you can't understand that?
MilkBeforeCereal
I can't write shit in python, but that's easily understandable
Anonymous
i never used python 🤔
Ajay
struct X{ map<int,X*> mp; }; void fun(X* root){ root->mp[6] = new X; } int main(){ X *root = new X; fun(root); } 1. Wanted to ensure that, on the call of fun(X* root), root->mp[6] resides in heap and the newly created X is also in heap. So, a pointer in heap points to something on heap. 2. Does delete(root->mp[6]) deletes the the newly created object?
klimi
Not in python 🙄
i am sorry master, would you like me to rewrite it in brainfuck
klimi
Dima
Whoever says python will be banned:DD
Nomid Íkorni-Sciurus
D
Dima
snake
Big boss
Luk
Please either one of you can get an explicit document that talks about the min_max algorithm
MilkBeforeCereal
Luk
view 2 numbers check if one is min or max repeat
No the algorithm for IA game like tic tac toe Algorithm minimax
klimi
No the algorithm for IA game like tic tac toe Algorithm minimax
https://www.geeksforgeeks.org/minimax-algorithm-in-game-theory-set-1-introduction/
klimi
Im french will better Thanks
:) i am not a idiot
klimi
Anonymous
How to count the number of points in a text file?
Riccardo
.?
MᏫᎻᎯᎷᎷᎬᎠ
in >> ch; If (ch=='.') count++;
Anonymous
Anonymous
https://codeforces.com/contest/208/problem/A
Anonymous
this is the question can anyone tell me why my code not working
Francisco
What is it supposed to do?