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 the types of data types and explain?
What is derived datatype in c?
Write a factorial program using C.
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How can you read a directory in a C program?
What does %d do?
What are different types of pointers?
What is the basic structure of c?
What is break statement?
Can you please compare array with pointer?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Explain about the constants which help in debugging?
Can a program have two main functions?
When we use void main and int main?
Stimulate calculator using Switch-case-default statement for two numbers