Buscar

What is the purpose of inline functions in C++? I - Inline functions are used to reduce the processing time of function calls. II - Inline functio...

What is the purpose of inline functions in C++?

I - Inline functions are used to reduce the processing time of function calls.
II - Inline functions are used to reduce the memory usage of function calls.
III - Inline functions can be used recursively.
IV - Inline functions can have default parameter values.
a) I and III are correct.
b) II and IV are correct.
c) I and IV are correct.
d) II and III are correct.
e) I and II are correct.

Essa pergunta também está no material:

Trabalho_de_Formatura_Apostila_da_Lingua
99 pág.

Programação I Universidade Estácio de SáUniversidade Estácio de Sá

Respostas

User badge image

Ed Verified user icon

A função inline em C++ tem como objetivo reduzir o tempo de processamento das chamadas de função. Além disso, ela também pode ser usada recursivamente e pode ter valores padrão para parâmetros. Portanto, a alternativa correta é a letra c) I e IV estão corretas.

0
Dislike0

Responda

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

Continue navegando