main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answer Posted / anu
Error
since s is not declared
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are Macros? What are its advantages and disadvantages?
How can you find the day of the week given the date?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is function prototype in c with example?
How can a process change an environment variable in its caller?
What is extern c used for?
What is external variable in c?
Why clrscr is used in c?
Is using exit() the same as using return?
Why main is used in c?
What are predefined functions in c?
How is a pointer variable declared?
What header files do I need in order to define the standard library functions I use?
What is an endless loop?
Differentiate between #include<...> and #include '...'