What is a block in c++?



What is a block in c++?..

Answer / Taruna Saxena

A block in C++ refers to a pair of braces '{ }' that enclose a sequence of statements. A block defines the scope of variables declared within it, and the code within a block is executed only when the block is entered.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is size of empty class object

5 Answers   CA,


Will rust take over c++?

1 Answers  


How would you obtain segment and offset addresses from a far address of a memory location?

1 Answers  


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

1 Answers  


How do you define a class in c++?

1 Answers  


Explain some examples of operator overloading?

1 Answers  


Is c++ the hardest language?

1 Answers  


Is there a sort function in c++?

1 Answers  


What is class invariant?

1 Answers  


What is a tuple c++?

1 Answers  


Define precondition and post-condition to a member function?

1 Answers  


What is const in c++?

1 Answers  


Categories