lundi 28 août 2017

Error in compilation. what will be the correct code and output?

why is there a compilation error(lvalue required in line 3)

what will be the correct code and then the output?

 #include<iostream>
 #define PRINT(i,LIMIT) \
  do{   if(i++<LIMIT)\
       { cout<<"Gradeup";\
         continue;  }\
         }\
       while(1)

using namespace std;


int main() {  

PRINT(0,3);
return 0;
}

Aucun commentaire:

Enregistrer un commentaire