C++ -Reply me quickly

Dayanandkesarkar's Avatar, Join Date: Jul 2010
Newbie Member
IN following optins which is true statement about prototype declaration in C++?
1. void fun1(int,float);
2. void fun1(int a,float b);
3. void fun1(int a,float b=30.34);
4.void fun1(int a=10,float b);
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
There are more than one true answers.
0
bluecoder's Avatar
Go4Expert Member
All are true ..
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Last one cannot be true as default parameters cannot be only on the first param but you have to specify it for all the subsequent params
0
bluecoder's Avatar
Go4Expert Member
Yes ..u are right ... last one is false .. sorry i did not had proper look .