English

Find and Write the Output of the Following C++ Program Code: Note: Assume All Required Header Files Are Already Included in the Program: - Computer Science (C++)

Advertisements
Advertisements

Question

Find and write the output of the following C++ program code:

Note: Assume all required header files are already included in the program:

#define Modify(N) N*3+10
void main()
(
    int LIST(]:{l0,15,12,17);
    int *P-LIST, C;
    for(C=3; C>=O; C--)
        LIST[c]=Modify(LIST[c) ;
    for (C=O; C<=3; C++)
    {
        cout<<*P<<":";
        P++;
    }
}

Solution

40: 55: 46: 61

shaalaa.com
  Is there an error in this question or solution?
2017-2018 (March) All India Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×