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);
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
There are more than one true answers.
bluecoder's Avatar
Go4Expert Member
All are true ..
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
bluecoder's Avatar
Go4Expert Member
Yes ..u are right ... last one is false .. sorry i did not had proper look .