Jussi
Go program some JavaScript
Lionel
Will there be a run time decision as to where the register variables will be stored if the cpu registers are full?
Jussi
Jussi
how the hell could the processor do such checks?
Anonymous
Lionel
Ilya
Lionel
Ilya
And if you are so interested in this topic, you must know that every variable (lvalue) has an address which can be used in the program.
Register variables in general cannot have an address.
So if the address of a variable is really used in the program, it cannot be located in registers.
Lionel
Lionel
Any books for conceptual understanding of c/c++? Recommendations!
Anonymous
Lionel
Okay suggestions for books on C and c++?
Anonymous
Anonymous
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
Jussi
learning C takes something between a couple of months to a year
Jussi
C++ I'm still learning after 4 years
Anonymous
Anonymous
Anonymous
RAII, templates and other make C++ is more type safe language
Jussi
yes
Lionel
If a pointer is not dereferenced properly, it results in segmentation fault or compile time error?
Anonymous
Anonymous
Compiler can't guess that a pointer is invalid
Jussi
Jussi
Lionel
For eg. Let's say a is a 3D array of characters and I dereference it, what's the result.
Jussi
2D array
Jussi
most likely
Anonymous
Lionel
Okay. I'll look into it👍
Anonymous
Or std::array
Pro
i dont think it is worrysome thing
Jussi
Jussi
the point of the video is that you should not write C++ like you wrote C
Pro
yeah that i agree
Jussi
yeah
Jussi
otherwise you should downgrade your compiler to to C++98
Anonymous
Guys, how can I get first two numbers from argument in C like this: ./crack 51v3nsnsjshrvej
I need variable, which should take 51.
Jussi
I guess you can use sscanf
Pro
C and C++ have their own set of potential and have their own ways of execution.
Jussi
Pro
can u explain it please?
Lionel
Not sure about c, but c++ would thrive atleast for another 10 yrs in the market
Anonymous
Lionel
What's the logic behind
int arr[3] ={1,2,3};
If arr[3] is printed, it gives 0. And arr[4] gives a garbage value
Lionel
Anonymous
Anonymous
You accessed element out of range of the array
Lionel
So it depends on the compiler?
Anonymous
Liam
Liam
And it also depends on run time memory allocation.
Anonymous
Because it's UB
Liam
lol
Anonymous
It won't happen of course, but it'd be a valid behavior of the program
Anonymous
Lionel
👍
Anonymous
Lionel
Anonymous
https://www.youtube.com/watch?v=u_ij0YNkFUs
Anonymous
A review of Modern C++ by the C++ creator
Anonymous
C++ becomes more and more powerful and modern language every 3 years
Anonymous
/save stop-teaching-c https://www.youtube.com/watch?v=YnWhqhNdYyk
Anonymous
/save cppbookguide https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
Anonymous
https://github.com/microsoft/STL/
Microsoft has open-sourced its STL implementation!
Mat
Lionel
Regarding the rule for implicit conversion in c, the operand with lower data type is converted to higher datatype? So int < unsigned int < float < double would be crt?
Sid Sun
Anonymous