Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail

C++ perguntas e respostas de entrevista

Test your skills through the online practice test: C++ Quiz Online Practice Test

Diferencas relacionadas

C vs C++Java vs C++

Pergunta 66. What are the differences between a C++ struct and C++ class?


The default member and base-class access specifier are different.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 67. How many ways are there to initialize an int with a constant?


Two.
There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.
int foo = 123;
int bar (123);

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 68. How does throwing and catching exceptions differ from using setjmp and longjmp?


The throw operation calls the destructors for automatic objects instantiated since entry to the try block.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 69. What is a default constructor?


Default constructor WITH arguments class B { public: B (int m = 0) : n (m) {} int n; }; int main(int argc, char *argv[]) { B b; return 0; }

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 70. What is a conversion constructor?


A constructor that accepts one argument of a different type.

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.