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

Which is best linux os?

1081


Why header file is used in c?

1156


Explain union.

1238


What's the total generic pointer type?

1108


What is the difference between #include

and #include “header file”?

1090


Can one function call another?

1173


What is optimization in c?

1070


What are the advantage of c language?

1105


When the macros gets expanded?

1484


What's the difference between constant char *p and char * constant p?

1191


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

1189


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1138


Explain what are its uses in c programming?

1126


how should functions be apportioned among source files?

1165


What is difference between Structure and Unions?

1310