Skip to content

Commit

Permalink
New question to c++ (Ebazhanov#1464)
Browse files Browse the repository at this point in the history
* Adding a new question to machine learning

* c++ question addition
  • Loading branch information
swordwielder authored Apr 17, 2021
1 parent 6b52814 commit 4853a8d
Showing 1 changed file with 33 additions and 0 deletions.
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;
```

0 comments on commit 4853a8d

Please sign in to comment.