πŸ“Š C++
Q. What is the output of the following program?
Code:
#include 
using namespace std;
    int main()
    {
        int p = 10;
        float q;
        cout << sizeof(++p + q);
        cout << " "<        return 0;
    }
  • (A) 10 2
  • (B) 10 4
  • (C) 2 10
  • (D) 4 10
πŸ’¬ Discuss
βœ… Correct Answer: (D) 4 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
160
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Siddharth M
Publisher
πŸ“ˆ
87%
Success Rate