Two Questions about c++ lambda functions. [Must Read]

Revision en3, by Boring_Day, 2022-10-06 09:47:31

So today i was learning about c++ lambda functions. and i have some doubts.

Q.1) See this

why the output is 2?

Q.2) another question

This is giving me runtime error why?

tell me

Tags question, c++, lambda, important

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Boring_Day 2022-10-06 09:47:31 225
en2 English Boring_Day 2022-10-06 06:58:39 38
en1 English Boring_Day 2022-10-06 06:55:35 889 Initial revision (published)