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...

main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?

Answer Posted / fazlur rahaman naik

actually the output will b : India only.
the above programme doesn't produce any error at if(a =
0).because we r assiging value here, we r not comparing the
value here.so the condition will fail here and the next
statement after if condition will print.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you determine the maximum value that a numeric variable can hold?

1187


Write a program to check prime number in c programming?

1051


How can a string be converted to a number?

990


What is an array? What the different types of arrays in c?

1126


What is the code in while loop that returns the output of given code?

1926


Write a program to print factorial of given number without using recursion?

966


What is property type c?

1054


What does %c mean in c?

1037


Is c easy to learn?

953


Is c is a low level language?

1091


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

1099


When can a far pointer be used?

986


Can static variables be declared in a header file?

1028


What the advantages of using Unions?

1184


What is the difference between int main and void main in c?

1118