Can a function is defined inside anothor function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can a function is defined inside anothor function

13th Jun 2018, 4:52 PM
Rajesh kumar Jena
Rajesh kumar Jena - avatar
7 Answers
+ 5
no in old c++
13th Jun 2018, 5:01 PM
Rizi Rozi
+ 4
in old c ++ ..no you can not ..but you can call other function inside a function as much i learned.
13th Jun 2018, 4:59 PM
Elitesol
0
you can't do it. you can call function within function definition not allowed
14th Jun 2018, 5:38 AM
Dilshad Ahmad
Dilshad Ahmad  - avatar
0
Not sure u can directly, but if u use recursive definitions u can recall the same function within another.
15th Jun 2018, 4:55 AM
shashuri Magrease
shashuri Magrease - avatar
0
yes
15th Jun 2018, 5:57 AM
HusNain Ali
HusNain Ali - avatar
0
just call another function in that function✌
19th Jun 2018, 5:57 PM
tosif khan
tosif khan - avatar
0
No .. ots not posiible first you jave to define both function and then call it in main
10th Jan 2019, 5:34 PM
sarah