What is the purpose of the 'struct' keyword in C programming?
a) It creates a new type of data that groups data items of different types.
b) It def...
What is the purpose of the 'struct' keyword in C programming? a) It creates a new type of data that groups data items of different types. b) It defines a structure of homogeneous data. c) It creates a new type of data that groups data items of the same type. d) It defines a structure of heterogeneous data.
a) It creates a new type of data that groups data items of different types. b) It defines a structure of homogeneous data. c) It creates a new type of data that groups data items of the same type. d) It defines a structure of heterogeneous data.
A resposta correta é a alternativa a) "Ela cria um novo tipo de dado que agrupa itens de dados de tipos diferentes". A palavra-chave 'struct' em programação C é usada para definir uma estrutura de dados que pode agrupar diferentes tipos de dados em uma única unidade.
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar