Quiz di Pointers

The part of C everyone has to get right: addresses and dereferencing, pointer arithmetic, how arrays turn into pointers, pointers to pointers and pointers to functions.

Intermedio 5 quiz · 50 domande circa 33 minuti
0/5superati Esame di categoria 20 domande miste. Con l'80% ottieni un certificato.
Tag:
1 Pointer Basics Facile Take addresses with &, follow them with * and change variables through pointers. #pointers#basics 10 domande · ~5 min Da iniziare Inizia
2 Pointer Arithmetic Medio Move pointers through arrays with +, -, ++ and subtraction, and read *p++ correctly. #pointers#pointer-arithmetic 10 domande · ~6 min Da iniziare Inizia
3 Pointers & Arrays Medio See how array names turn into pointers, where they do not, and why a[i] equals *(a + i). #pointers#arrays 10 domande · ~6 min Da iniziare Inizia
4 Pointer to Pointer Difficile Use int ** to change a caller's pointer, build dynamic tables and walk arrays of strings. #pointers#double-pointers 10 domande · ~8 min Da iniziare Inizia
5 Function Pointers Difficile Store functions in variables and arrays, pass them as callbacks and read their declarations. #pointers#functions 10 domande · ~8 min Da iniziare Inizia