📌  相关文章
📜  国际空间研究组织 | ISRO CS 2018 |问题 51

📅  最后修改于: 2022-05-13 01:58:06.399000             🧑  作者: Mango

国际空间研究组织 | ISRO CS 2018 |问题 51

考虑以下 C++ 程序'

int a (int m)
{return ++m;}
int b(int&m)
{return ++m;}
int c(char &m)
{return ++m;} 

void main 0
{
      int p = 0, q = 0, r = 0; 
      p += a(b(p));
      q += b(a(q));
      r += a(c(r));
      cout<
Assuming the required header files are already included, the above program:
(A) results in compilation error
(B) print 123
(C) print 111
(D) print 322
 Answer: (A) Explanation: Quiz of this QuestionPlease comment below if you find anything wrong in the above post