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

Revision en1, by Boring_Day, 2022-10-06 06:55:35

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

Spoiler

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)