Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following piece of code? #include int main ( ) { int abc = 1 ; if ( ! abc

What is the output of the following piece of code?
#include
int main()
{
int abc =1;
if (!abc){
printf("In first if
");
printf("%d
",!abc);
}
else {
printf("In first else
");
int xyz =-10;
printf("%d
",!xyz);
}
int lmn =0;
if(!lmn){
printf("In second if
");
printf("%d
",!lmn);
}
else {
printf("In second else
");
printf("I love C/C++!
");
}
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions