Find the output for the following C programmain(){int a=0;if(a=0) printf("Ramco Systemsn");printf("Ramco Systemsn");}

Only one time "Ramco Systems" will be printed

Showing Answers 1 - 3 of 3 Answers

mamathi

  • Sep 4th, 2005
 

what is the use of putting 'n' in the last.is it used for end of line or ? 
two time ramco Systems will print.

  Was this answer useful?  Yes

sunitha

  • Feb 9th, 2007
 

I don't feel that 'n' will have some meaning as it is enclosed in quotations. and if (a=0) will it compare,
i feel only "== " will compare some values (a=0) assigns value to a.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions