Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct C {
- static int i;
- static int j;
- };
- int i = 10;
- int C::i = 20;
- int C::j = i + 1;
- int main() {
- std::cout << C::j << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement