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

What does void main return?

1126


How can I get the current date or time of day in a c program?

1224


List some of the static data structures in C?

1202


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3970


what is the structure pointer?

2123


How can you increase the size of a dynamically allocated array?

1190


How can I read in an object file and jump to locations in it?

1033


Explain can static variables be declared in a header file?

1155


How can I find the modification date and time of a file?

1085


Where define directive used?

1097


What is int main () in c?

1091


How do shell structures work?

1114


What header files do I need in order to define the standard library functions I use?

1060


What is the advantage of a random access file?

1203


Explain about C function prototype?

1094