MCQOPTIONS
Bookmark
Saved Bookmarks
→
C++ Programming
→
Constructors And Destructors in C++ Programming
→
What will be the output of the this program?..
1.
What will be the output of the this program?
A.
70
B.
40
C.
30
D.
184
E.
148
Answer» F.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> char str[20] = "Interview Mania";<br> cout << str[10];<br> cout < return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> int arr[] = {15, 25, 50};<br> cout << -2[arr];<br> return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <stdio.h><br> using namespace std;<br> int main()<br> {<br> int p = 15, q = 11, r = 12;<br> int array[3] = {&p, &q, &r};<br> cout << *array[*array[1] - 8];<br> return 0;<br> }<br></stdio.h></pre>
What will be the output of the this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main ()<br> {<br> int arr[] = {10, 12, 40, 16, 70, 15, 30};<br> int k, res = 0;<br> for (k = 0; k < 5; k++) {<br> res += arr[k];<br> }<br> cout << res;<br> return 0;<br> }<br></iostream></pre>
What will be the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int arr1[] = {150, 50, 230, 130, 160};<br> int arr2[] = {13, 15, 30, 28, 50};<br> int temp, res = 0;<br> int main()<br> {<br> for (temp = 0; temp < 5; temp++) <br> {<br> res += arr1[temp];<br> }<br> for (temp = 0; temp < 4; temp++)<br> {<br> res += arr2[temp];<br> }<br> cout << res;<br> return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> int array[] = {41, 15, 61, 27};<br> int *ptr = (array + 3);<br> cout << *ptr;<br> return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> int k;<br> char *array[] = {"Red", "Blue", "Green", "Yellow"};<br> char *(*p)[4] = &array;<br> cout << ++(*p)[2];<br> return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> int num[10] = {13, 16, 19, 11, 18, 13, 22, 26};<br> cout << num[1] + 2< return 0;<br> }<br></iostream></pre>
What is the meaning of the following declaration?<br>int(*p[5])();
Which of the following accesses the ninth element stored in array?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply