-
What would be the output of the following program (in 32-bit systems)?
#include
using namespace std;
int main()
{
cout << sizeof(char);
cout << " "<< sizeof(int);
cout << " "<< sizeof(float);
return 0;
}
-
- 1 4 4
- 4 4 1
- 4 1 4
- Garbage value
- None of these
Correct Option: A
Character is 1 byte, integer 4 bytes and float 4 bytes.