
Flashcard sulle Struct in C

Flashcard
•
Computers
•
Vocational training
•
Hard
Wayground Content
FREE Resource
Student preview

35 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Quale concetto spiega meglio la necessità delle struct rispetto agli array in C? Gli array possono contenere solo dati omogenei, Le struct permettono di gestire dati eterogenei, Gli array sono dinamici mentre le struct sono statiche, Le struct richiedono meno memoria degli array
Back
Le struct permettono di gestire dati eterogenei
2.
FLASHCARD QUESTION
Front
Quale parola chiave viene utilizzata per definire una struttura in C?
Back
struct
3.
FLASHCARD QUESTION
Front
Considera il codice: struct data { int giorno; int mese; int anno; }; Quale istruzione stampa correttamente la data? Options: scanf("%d/%d/%d", oggi.giorno, oggi.mese, oggi.anno);, puts("%d/%d/%d", oggi.giorno, oggi.mese, oggi.anno);, printf("%d/%d/%d", oggi.giorno, oggi.mese, oggi.anno);, printf("%s/%s/%s", oggi.giorno, oggi.mese, oggi.anno);
Back
printf("%d/%d/%d", oggi.giorno, oggi.mese, oggi.anno);
4.
FLASHCARD QUESTION
Front
Quale operazione NON è consentita direttamente tra due struct? Assegnamento diretto, Passaggio per valore in una funzione, Confronto diretto con '==', Utilizzo di sizeof
Back
Confronto diretto con '=='
5.
FLASHCARD QUESTION
Front
Quale affermazione è vera riguardo all'uso di typedef con le struct?
Back
typedef permette di creare un nuovo nome per il tipo struct
6.
FLASHCARD QUESTION
Front
Quale dichiarazione definisce correttamente una struct studente e ne dichiara subito una variabile? Options: struct studente { char nome[30]; int anni; } s1;, typedef struct { char nome[30]; int anni; } studente; studente s1;, struct studente { char nome[30]; int anni; }; struct studente s1;, Tutte le risposte proposte
Back
Tutte le risposte proposte
7.
FLASHCARD QUESTION
Front
Qual è il risultato di sizeof(struct data) se contiene 3 int (4 byte ciascuno), senza padding?
Back
12 byte
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Verbi Modali Flashcard

Flashcard
•
9th - 12th Grade
30 questions
C BASICS

Flashcard
•
Professional Development
26 questions
Power Word Roots

Flashcard
•
1st - 5th Grade
24 questions
Java String class methods

Flashcard
•
10th - 12th Grade
35 questions
Java Basics

Flashcard
•
11th - 12th Grade
29 questions
TECH FLASHCARD 105

Flashcard
•
University
26 questions
mid term review : 2025

Flashcard
•
9th - 12th Grade
26 questions
mid term review : 2025

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade