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

How do you list a file’s date and time?

1020


Where are the auto variables stored?

1087


Explain how do you determine whether to use a stream function or a low-level function?

1021


Explain how can you tell whether a program was compiled using c versus c++?

1048


What is the value of uninitialized variable in c?

974


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

972


What are header files in c programming?

1071


What are dangling pointers in c?

1112


What is sizeof array in c?

983


Do you know pointer in c?

985


What is the difference between the = symbol and == symbol?

1051


What is function what are the types of function?

944


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2036


Tell us the use of fflush() function in c language?

1083


What does the error 'Null Pointer Assignment' mean and what causes this error?

1152