Answers for "explicit and implicit meaning c++"

C++
1

explicit vs implicit c++

int x = 0;
double y = 10.0f;
x = y; //implicit conversion
x = (int)y; //explicit conversion
Posted by: Guest on September-12-2021
-1

explicit in c++ meaning

class String {
public:
    explicit String (int n); //allocate n bytes
    String(const char *p); // initialize sobject with string p
};
Posted by: Guest on March-04-2021

Code answers related to "explicit and implicit meaning c++"

Browse Popular Code Answers by Language