TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gopal
NA
135
15.4k
Why the output is not 6?
Mar 6 2021 5:35 AM
#include
#include
#include
using
namespace
std;
int
main() {
vector heights = {
100.3,
120.8,
132.7,
160.4,
150.3,
144.9,
170.5,
125.6
};
auto myLambda = count_if(heights.begin(), heights.end(), [](
int
x) {
return
x > 125.00;
});
cout <<
"The number of participants will be: "
<< myLambda;
return
0;
}
The output:The number of participants will be: 5 [Program finished]Why the output is not 6?
Reply
Answers (
3
)
Why 2 different compilers output different results? 13 and 14?
Why does this print 0 even when i is neither a global variable nor a s