Anonymous
Many teach me
Anonymous
Thanks rose
Anonymous
It's not a Google question, we need to teach him
Anonymous
Anonymous
Thanks rose
It's too early for you to think about C++ and AI
Anonymous
It is
Yeah
Anonymous
Anonymous
To create a game?
Anonymous
To create a game?
To learn some theory
Anonymous
To learn how things work
Dima
Dima
#googleit
Anonymous
Yeah
Anonymous
Anonymous
Anyone know how we can open a obj file in readable format??
Vishal
This is a bad example We could use regular pointer to function
Still you have to declare it somewhere & pass it rather. After that its redundant
Anonymous
Still you have to declare it somewhere & pass it rather. After that its redundant
of course but a regular function would be a better choice for the example
Vishal
Please ask admins for permission to promote your blog next time, Vishal
Hey thanks for the comment. How do i ask for my blog promotion here? Although i am not spamming here. And neither my blog contain any ads kind of things. I am not generating any revenue from it. My intention is to write articles on things i love
Anonymous
Hiii
Anonymous
Send me questions for interview in Accenture
Anonymous
In c amd c++
Anonymous
Yesterday was a day for TCS, today is for Accenture...
Anonymous
Ilya
Send me questions for interview in Accenture
Question #1 1) What is Accenture ?
Anonymous
Question #1 1) What is Accenture ?
The greatest company in world
Ilya
The greatest company in world
Question #2: 2) What is the greatest company in the world?
Anonymous
Accenture and tcs
♥️♥️♥️
Anonymous
Hello. Anyone here from Pune?
Anonymous
Anonymous
What is blore?
Anonymous
Anonymous
Okau
Anonymous
Okau
♥️♥️♥️
Anonymous
U a student or a dev?
Lionel
Bangalore
Where in bangalore?
Anonymous
Lionel
😂😂😂I know bangalore is in karnataka. I asked which area in bangalore? Like marathahalli, whitefields
V.Bhanu
can any one provide accenture material for placement
Pavel
Will a member variable of type int be initialized with zero value in an object that is a global static variable, and if the class doesn't have any constructors. So will the next code produce 0 output or UB? class Foo {public: int test;}; static Foo foo; int main() { std::cout << foo.test; }
Danie
cppreference used
Anonymous
Hi
Pavel
cppreference used
The same Actually I found here that the object should be "zero initialized" https://en.cppreference.com/w/cpp/language/initialization But at the zero initialization page (https://en.cppreference.com/w/cpp/language/zero_initialization) it says If T is an non-union class type, all base classes and non-static data members are zero-initialized, and all padding is initialized to zero bits. The constructors, if any, are ignored. That means that the value will be initialized with zero. But the part about constructors sounds strange. I need to test it.
Герхард
you ust click the message that's why
Anonymous
Am waiting for the lecture
Dima
thanks, we got it
Герхард
Anonymous
Hi
Hi bro
Anonymous
Hi how are you bro
Tokin
Awesome do you C?
Tokin
Or C++?
Anonymous
Hey im new to the win api and would like to know if there are examples to get the gui work without using the winmain function but to spawn it up from an injected dll instead
Pavel
Thank you, also I found an example static int n = argc; // zero-initialized to 0 // then copy-initialized to argc
With built-in types this is more or less clear, they will be initialized with zeroes/nullptrs. But with non-static members of static objects this wasn't so clear for me.
Pavel
Why do you get afraid about c’tor? Static fields should be initialized before.
I just wonder what that means they are ignored. If in opposite to the situation I described before, I have a default constructor that initializes my int value with 5, will it be ignored and the value will be 0.. I will test it when I got to PC, but I doubt it
Danie
I just wonder what that means they are ignored. If in opposite to the situation I described before, I have a default constructor that initializes my int value with 5, will it be ignored and the value will be 0.. I will test it when I got to PC, but I doubt it
Yes, sorry, I understand what you are trying to investigate, I think it should be 5, because the docs said that zero initialization performed before other initialization types.
Danie
Explanation section p1
Pavel
Explanation section p1
That is about constant initialization, but what if it's non constant.
Danie
That is about constant initialization, but what if it's non constant.
I think it is also about non constant field for a constant variable. But I’ll try for sure.
Pavel
I think it is also about non constant field for a constant variable. But I’ll try for sure.
but the variable is non-constant also I've just tried it, it initialized with 5, as you said http://cpp.sh/5ygvr
Pavel
That's what I would expect Just the docs not very clear
Danie
but the variable is non-constant also I've just tried it, it initialized with 5, as you said http://cpp.sh/5ygvr
So my understanding is, that zero-initialization is just a part of a full initialization(I’ve just created the term), and full initialization consists of zero and default initialization, at least. At first, yes, you had initialized all possible fields in your class with zero, and after that the default c’tor was called.
Danie
that makes sense
Ty mate, it was an interesting question 😊
Danie
that makes sense
Also, I think the word “ignored” means “ignored for the step” in particular.