What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() { int

Tam ca

New member
What will be the output of the following C++ code?
Code:
   #include <iostream>
   using namespace std;
   int main()
   {
       int arr[] = {4, 5, 6, 7};
       int *p = (arr + 1);
       cout << arr;
       return 0;
   }
A. 4
B. 5
C. address of arr
D. 7
 

Tìm kiếm

Back
Top