You are looking at lesson 8. Your place is still Practice test 2, task 1: About.
A forgotten &, an uninitialised pointer, NULL, a local's address, int *p, q, & instead of &&, shifting an int, the size of long.
Pointer bugs are dangerous because the program often crashes somewhere other than where the bug is.
&. swap(x, y) instead of swap(&x, &y): makes pointer from integer without a cast. Where a function writes, pass the address.int *p; *p = 5; writes who knows where. A pointer always gets a value straight away: an address or NULL.NULL. *p when p == NULL crashes (0xC0000005 on Windows, Segmentation fault on Linux). A function taking a pointer checks assert(p != NULL).return &x; from a function gives function returns address of local variable. The variable disappears with the function.int *p, q; Here q is a plain int, not a pointer: the star belongs only to p. Write one declaration per line.& instead of &&. if (a & b) tests bits, if (a && b) whether both are true. 2 & 1 is 0, although both numbers are "true".int. 1 << 31 is undefined behaviour (UBSan: left shift of 1 by 31 places). For bits use unsigned and 1u.long. 4 bytes on Windows, 8 on Linux: what worked in CLion may give a different result in CI. Find the size with sizeof.Each one ticks itself when you do it.
All six done. You know your way around.
It is laid out like CLion: the same panels in the same places. This tour shows each one, and you can reopen it any time with Tour.
Switches the left panel: Lesson plan, Project files, Changes. Click the active icon again to hide the panel.
In CLion: the tool window bar runs down the left edge, too.
This part is not on this task: it appears when a task needs it.
Every task in this lesson. Now marks your place. Clicking a task only lets you look; it never moves your place. Project files and Changes open here too.
In CLion: this spot holds the Project view (the file tree).
This part is not on this task: it appears when a task needs it.
Opens the file for your task by itself. A tab appears for each file the step opens. The breadcrumbs above the code show the folder.
In CLion: the same editor tabs and breadcrumbs.
This part is not on this task: it appears when a task needs it.
Diff shows what changed, like git diff: red is the old code, green the new.
In CLion: the diff view in the Commit window looks the same.
This part is not on this task: it appears when a task needs it.
Terminal for build commands, Database to see your tables. They open by themselves when a task needs them. Drag the top edge to resize.
In CLion: Terminal, and the Database tool window.
This part is not on this task: it appears when a task needs it.
What to do now, right above the code, so you never miss it. Numbered notes in the code explain the important lines. Details shows what you should see and a hint.
In CLion: no equivalent: this is your lecturer's guide.
This part is not on this task: it appears when a task needs it.
Done is the only button that moves you forward. Look back lets you review without losing your place.
This part is not on this task: it appears when a task needs it.
Guided, Focus code or Floating. You can drag the panel edges too. Your layout is remembered for next time.
In CLion: you can also rearrange and hide tool windows.
This part is not on this task: it appears when a task needs it.
Six small missions. Each one ticks itself when you do it, so you know you have found everything.