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

the answer will be India
if statement executes the statement if it is true i.e other
than "0"..[eg.if(1)]
here we are giving a=0 which implies false.
so the if statement doesnot execute first statement.
if you dont agree check following
main()
{
int a=0;
if(a=1)/*other than zero any number*/
printf("Ramco Systems\n")
printf("India\n");}

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is extern used in c?

1075


Tell me what is null pointer in c?

1046


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1078


C language questions for civil engineering

1681


main() { printf("hello"); fork(); }

1170


What is break statement?

1084


Explain Function Pointer?

1124


Tell us bitwise shift operators?

1055


What is dynamic dispatch in c++?

1036


Explain the ternary tree?

991


find out largest elemant of diagonalmatrix

2210


Differentiate fundamental data types and derived data types in C.

1003


Why & is used in scanf in c?

1069


When should the register modifier be used? Does it really help?

940


What is structure pointer in c?

1016