Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?

Answer Posted / sukant

The syntax for the if statement is also not correct..
The conditional assignment includes two == rather than a single =...
so,, the if statement wont consider that as a conditional statement and come out of it..
And, it will give an error in the printf(i=3); as the syntax is not apt.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is linux written in c?

1083


Explain what are multibyte characters?

1255


How can I do graphics in c?

1071


What is omp_num_threads?

1134


Why is sizeof () an operator and not a function?

1089


What is a loop?

1112


What is difference between array and structure in c?

1267


Define VARIABLE?

1234


What does return 1 means in c?

1117


Explain what is the difference between a string and an array?

1224


What is the use of gets and puts?

1093


What are the application of void data type in c?

1232


Why #include is used in c language?

1100


write an algorithm to display a square matrix.

2760


using for loop sum 2 number of any 4 digit number in c language

2418