Cisco Written Test Qs.(Technical Aptitude) :: Increment-Decrement - Discussion
Home > Freshers Archives > Cisco Placement Questions & Answers > MCQs Questions Discussion
11 / 123
Find the output for the following C program
#include
int main()
{
int Y=10;
if( Y++ && Y++!=10 && Y++)
{
printf("%d", Y);
}
else {
printf("%d", Y);
}
return 0;
}
int main()
{
int Y=10;
if( Y++ && Y++!=10 && Y++)
{
printf("%d", Y);
}
else {
printf("%d", Y);
}
return 0;
}
A1
B13
CError
D14
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!