Bissoy.com
Login
Doctors Medicines MCQs Q&A
Ask Merit Test Questions Courses

Predict the output.  int a; .  float b; . a = 5;  cout << sizeof(a + b/2);

Predict the output.

 int a; . 

float b; . a = 5; 

cout << sizeof(a + b/2);

Monjur Alahi
Monjur Alahi
5 views
2025-01-04 04:42

1 Answers

Salim Ahmed Kawsar
Salim Ahmed Kawsar

Output is 4. Result will be the memory size of floating point number

5 views Answered 2023-02-05 15:29

Related Questions

Predict the output of the following queries:  i. Select power(5,3); 
2 Answers 5 Views
Predict the output  var x, y; 
2 Answers 4 Views
Predict the output of the following code snippet var x=” HIGHER SECONDARY”; alert(x.charAt(4));
2 Answers 6 Views
Consider the following float x = 25.56; cout<<(int)x;
2 Answers 4 Views
char ch; cout<< Enter a character; cin>>ch; Consider the above code, a user gives 9 to the variable ‘ch’. Is there any problem? Is it valid?
2 Answers 7 Views
Predict the output of the following code. Justify. int k = 5;
2 Answers 4 Views
Predict the output. 1. int sum = 10, ctr = 5; sum = sum + ctr–;
2 Answers 5 Views
Suppose x=5 and y=2 then what will be cout<<(float) x/y
2 Answers 5 Views
Consider the following statements in C++ if(mark>=18) cout<<“Passed”; ’ else , cout<<“Failed”;
2 Answers 6 Views
Predict the output of the following C++ statements:  int a = -5, b = 3, c = 4; 
2 Answers 5 Views
  • কোরআন
  • হাদিস
  • চাকুরি প্রস্তুতি
  • বিশ্ববিদ্যালয় ভর্তি
  • মেডিকেল SBA
  • 12 এইচএসসি
  • 10 এসএসসি
  • 8 জেএসসি
এক্সাম দিয়ে মেধা যাচাই করুন
Job Preparation (1125)
Admission (754)
এসএসসি (10)
এইচএসসি (5)
Login Required

You need to log in to continue.

Login
Download Required

You need to download the app to make a call.

Download
ভিডিও কলে কথা বলতে প্লে স্টোর থেকে Bissoy অ্যাপ ডাউনলোড করুন অথবা প্রশ্ন উত্তর করতে লগইন করুন
📱 ডাউনলোড
  • অ্যাফিলিয়েট
  • FAQ
  • About Us
  • Privacy Policy
  • T&C
  • DMCA

© Bissoy, 2014 - 2025