πŸ“Š C++
Q. What would be the output of the following program (in 32-bit systems)?
Code:
#include 
using namespace std;
    int main()
    {
        cout << sizeof(char);
        cout << " "<< sizeof(int);
        cout << " "<< sizeof(float);
        return 0;
    }
  • (A) 1 4 4
  • (B) 4 4 1
  • (C) 4 1 4
  • (D) Garbage value
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1 4 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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