Home

What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout <<i<<"
";

A. 10

B. 20

C. 55

D. there is an error in the program

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. A member function can always access the data
  2. A variable defined within a block is visible
  3. You can read input that consists of multiple lines of text using
  4. Which of the following is not a component of file system
  5. We cannot have the address of a constructor.
  6. Pick out the most appropriate statement
  7. When you overload an arithmetic assignment operator, the result
  8. Private members of a structure can be accessed directly from the outside of the structure.
  9. The member of a structure can be accessed through a pointer by
  10. "[]" Operator is a unary operator.
  11. In a for loop with a multi-statement loop body, semicolons should appear following
  12. Which of the following relationship is known as inheritancerelationship?
  13. Friend function have access to the
  14. _______ argument(s) are passed in case of binary overloaded operators.
  15. A base class is inherited by
  16. Class members are _______________ by default
  17. The new operator always returns a void pointer.
  18. cc ___________ option is used only to create object file
  19. new operator is used
  20. An object is an allocated space in memory.
  21. In case of nested class, enclosing class can directly access the private data member of nested class.
  22. When a language has the capacity to produce new data type, it is said to be
  23. Sharing of common information are achieved by the concept of
  24. Constructor returns void type value.
  25. It is possible to allow non member function access to private members of a class by declaring it as
  26. Inline functions_____________ call overload.
  27. We can make function inline by using the keyword 'inline'.
  28. The binding that binds a function call at run time is called
  29. In C++, an identifier must be initialized using constant expression.
  30. In C++, the keyword auto can be used for