Select the correct option to test your answer:
Computer
Classes And Objects In C Plus Plus
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { double arr[] = {5.0, 6.0, 7.0, 8.0}; double *p = (arr+2); cout << *p << endl; cout << arr << endl; cout << *(arr+3) << endl; cout << *(arr) << endl; cout << *arr+9 << endl; return 0; }
More Computer Questions
Which of the following is a thread management library in C++?
What will be the output of the following Python code? x = (i for i in range(3)) for i in x: print(i) for i in x: print(i)
Which of the following options tells mysql to ask for entering the password?
What is the output of the following code? #include<stdio.h> int get_sum(int n) { int sm, i; for(i = 1; i <= n; i++) sm += i; return sm; } int main() { int n = 10; int ans = get_sum(n); printf("%d",ans); return 0; }
Which of the following is NOT a valid HTTP method?