C++ Programming - Functions - Discussion
Discussion Forum : Functions - General Questions (Q.No. 3)
3.
Which of the following statement is correct?
Discussion:
15 comments Page 2 of 2.
Joel said:
1 decade ago
include<stdio.h>
int main ()
{
int a;
int b;
printf("please enter the number a&b");
scanf(%d,%d:&a and &b);
return0;
}
int main ()
{
int a;
int b;
printf("please enter the number a&b");
scanf(%d,%d:&a and &b);
return0;
}
Shalin said:
1 decade ago
But say there are 2 functions one has one argument and other has 2 arguments and if I keep parameters blank while calling this function which one should be called as default arguments are defined in both of them?
Aditi said:
1 decade ago
The trailing arguments of the function can have default arguments.
Abin said:
1 decade ago
Option c is correct. It is not a matter weather the parameter is default or not!
Sasi said:
1 decade ago
the parameters will be changed but not the functionality and the arguments in the function .
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers