1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

C++ -Reply me quickly

Discussion in 'C++' started by Dayanandkesarkar, Jul 11, 2010.

  1. Dayanandkesarkar

    Dayanandkesarkar New 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);
     
  2. shabbir

    shabbir Administrator Staff Member

    There are more than one true answers.
     
  3. bluecoder

    bluecoder New Member

    All are true .. :)
     
  4. shabbir

    shabbir Administrator Staff Member

    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
     
  5. bluecoder

    bluecoder New Member

    Yes ..u are right ... last one is false .. sorry i did not had proper look .
     

Share This Page