Buscar

What is the purpose of the #define directive in C? The #define directive in C is used to define constants that can be used throughout the program....

What is the purpose of the #define directive in C?

The #define directive in C is used to define constants that can be used throughout the program.
The #define directive in C is used to define variables that can be used throughout the program.
a) Only the first statement is correct.
b) Only the second statement is correct.
c) Both statements are correct.
d) Both statements are incorrect.

Essa pergunta também está no material:

Faculdade_de_Ciencias_Aplicadas_de_Casca
154 pág.

Ciências Aplicadas Universidade Estácio de SáUniversidade Estácio de Sá

💡 1 Resposta

User badge image

Ed Verified user icon

A resposta correta é a alternativa c) Ambas as afirmações estão corretas. A diretiva #define em C é usada para definir constantes que podem ser usadas em todo o programa.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais