Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New question to c++ #1464

Merged
merged 3 commits into from
Apr 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
c++ question addition
  • Loading branch information
swordwielder committed Apr 17, 2021
commit eb3b695d1667116d8a47e4ce8eb8945067bad3c6
33 changes: 33 additions & 0 deletions c++/c++quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -994,3 +994,36 @@ std::memset(buff,20,50);
- [x] `CustomData operator++(int);`

[Reference](https://en.cppreference.com/w/cpp/language/operators)

#### Q59. Which choice is not a valid type definition of a structure that contains x and y coordinates as integers, and that can be used exactly as shown for the variable named center?

```cpp
coord center;
center.x = 9;
center.y = 3;
```

- [ ] ```cpp
struct coord{
int x;
int y;
};
typedef struct coord coord;
```
- [ ] ```cpp
typedef struct coord{
int x;
int y;
} coord;
```
- [ ] ```cpp typedef struct coord{
int x;
int y;
};
```
- [ ] ```cpp typedef struct{
int x;
int y;
} coord;
```