Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 251 Bytes

013.md

File metadata and controls

21 lines (16 loc) · 251 Bytes
//difficulty level: easy

#include <iostream>

struct A {
    static int x;
    static int foo() { return 1; };
};

int foo() { return 2; }

int A::x = foo();

int main() 
{
    std::cout << A::x;
    A::x = foo();
    std::cout << A::x;
}