MCQOPTIONS
Bookmark
Saved Bookmarks
→
C++ Programming
→
Constructors And Destructors
→
How many types of comments are there in c++?..
1.
How many types of comments are there in c++?
A.
4
B.
3
C.
2
D.
1
E.
None of these
Answer» D. 1
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> /* this is comment* <br> cout << "Interview Mania";<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 add(int p, int q);<br> int main()<br> {<br> int k = 7, L = 9;<br> cout << add(k, L) << endl;<br> return 0;<br> }<br> int add(int p, int q )<br> {<br> int sum = p + q;<br> p = 10;<br> return p + q;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> void square (int *p)<br> {<br> *p = (*p + 3) * (*p);<br> }<br> int main ( )<br> {<br> int n = 15;<br> square(&n);<br> cout << n;<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> long fact (long p)<br> {<br> if (p > 1)<br> return (p * fact (p + 1));<br> else<br> return (1);<br> }<br> int main ()<br> {<br> long n = 6;<br> cout << n << "! = " << fact ( n );<br> return 0;<br> }<br><br></iostream></pre>
How many types of comments are there in c++?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply