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 / stuti

This program will give error. Becoz the format of if
statement and printf statement- both are wrong.
In if, instead of if(i==4), if(i=4) is written and in
printf statement, there should be printf("i==4"); and printf
("i=3");
So it will not be compiled.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a static function?

1157


What does #pragma once mean?

1207


What is variable in c example?

1131


How do I use void main?

1145


What is the condition that is applied with ?: Operator?

1182


Is c easy to learn?

1031


What is the difference between struct and typedef struct in c?

1171


ATM machine and railway reservation class/object diagram

5309


Is null equal to 0 in sql?

1189


Explain the difference between call by value and call by reference in c language?

1161


What will the preprocessor do for a program?

1117


What is array of pointers to string?

1157


What is atoi and atof in c?

1134


number of times a digit is present in a number

2079


What are type modifiers in c?

1096