B
bnp
Hi,
Is possible to use functions in conditional operator as ashown below.
.....
.....
int fun1()
{
// body
}
int fun2()
{
//body
}
....
main()
{...
int x;
x = (a>b)?fun1():fun2();
}
Is possible to use functions in conditional operator as ashown below.
.....
.....
int fun1()
{
// body
}
int fun2()
{
//body
}
....
main()
{...
int x;
x = (a>b)?fun1():fun2();
}