+ 2

What does the function with such syntax mean .. A (int i):i (++i){}

5th Jan 2018, 10:08 PM
rish@devsingh
rish@devsingh - avatar
4 Réponses
+ 2
It means that there's a function whose argument is i then it assigns i=++i
5th Jan 2018, 10:54 PM
Mohammed Hany
Mohammed Hany - avatar
+ 2
@Gordie .that explaination suits my piece of code. Also been there some func. like a(0) post ':' it would have called a() by passing 0 in it.Is that right ?
6th Jan 2018, 11:47 AM
rish@devsingh
rish@devsingh - avatar
+ 1
It means that the function assigns a=0
6th Jan 2018, 4:47 PM
Mohammed Hany
Mohammed Hany - avatar