The following code results in class eg { void ml( ) {int i = 6; for {int i=5: i< 10;i ++ } { if{i==6} continue; system.out.println {i} ; } } ; } 1. syntax / compilation error 2. 5 6 7 8 9 3. 6 7 8 9 4. 5 7 8 9
Latest Answer: In case of ordinary function, when calling the function the scope jumps to the function and after return jumps back to the function call statement resulting in some extra execution time. While in case of inline function the scope doesn't really jumps ...
Latest Answer: ya_bolek,You are partially right. sizeof( anything ) actually doesn't run any expressions. Here is an example I found on this site.int i = 10;sizeof(++i + 10);
Latest Answer: Copy Constructor uses class name as reference .., it is used to declare and Initialize an object from another object. i.e It is used to create a new object from existing object of same class. ...
Latest Answer: we can resuse the code in object oriented language. we can handle errors properly.everything relates to real world objects. ...
Latest Answer: pointer holds the address of a variable.reference holds the address of duplicate of that variable. ...
Latest Answer: As long as no diamond problems (improper inheritance), single or multiple inheritance can all be proper inheritance. When usng multiple inheritance with diamond problem, you can use virtual inheritance to make the multiple inheritance a proper one. ...
Latest Answer: Yes, the compiler will generate 1 byte of memory to mark the existence of the class. This doesn't answer WHY though. The reason is the language standard states that all classes must have a memory size of at least 1 byte so that the class ...
What is the difference between obeject oriented programing langauge and structure oriented programing langauge
View page << Previous 5 6 7 8 [9] 10 11 12 13 14 Next >>

Go Top