main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answer Posted / rupesh d. patil
Error
undefined symbol 's' in function main()
Warning
'sum' is assigned a value that is never used in function main
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the scope of static variables?
What do header files do?
What is an identifier?
write a program to print largest number of each row of a 2D array
How can I read a binary data file properly?
How are strings stored in c?
What is wrong with this declaration?
Explain what is meant by 'bit masking'?
Why does notstrcat(string, "!");Work?
How can you restore a redirected standard stream?
What is the difference between procedural and declarative language?
What is an auto variable in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
how can f be used for both float and double arguments in printf? Are not they different types?
What is c programing language?