Find the output for the following C program#include<stdio.h>void main(void);const int k=100;void main(void){int a[100];int sum=0;for(k=0;k<100;k++)*(a+k)=k;sum+=a[--k];printf("%d",sum);}

Showing Answers 1 - 1 of 1 Answers

manohar

  • Jan 20th, 2006
 

No Output

The program doesn't complile ....

and the error is .........."Constant object can't be modified"

  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