Interview Questions and Answers :: Cisco
Home > Experience Archives > Cisco > Interview Question Set 1 > Discussion
4. Make some change in below program so that it print "i am in if followed by I am in else"
If ()
{
printf("I am in if");
}
else
{
printf("I am in Else");
}
Answer:
change the code something like
If ( ! printf("I am in if") ) <
{
printf("I am in if");
}
else
{
printf("I am in Else");
}
Aman
25 Aug, 2016 4:03 PM
change the code something like
If ( ! printf("I am in if") ) <>
{
printf("I am in if");
}
else
{
printf("I am in Else");
}
If ( ! printf("I am in if") ) <
{
printf("I am in if");
}
else
{
printf("I am in Else");
}
Report Error
Report Error
Please Login First Click Here