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


Please Help Members By Posting Answers For Below Questions

What are the scope of static variables?

598


What do header files do?

601


What is an identifier?

619


write a program to print largest number of each row of a 2D array

1866


How can I read a binary data file properly?

632






How are strings stored in c?

590


What is wrong with this declaration?

608


Explain what is meant by 'bit masking'?

641


Why does notstrcat(string, "!");Work?

640


How can you restore a redirected standard stream?

608


What is the difference between procedural and declarative language?

645


What is an auto variable in c?

750


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


how can f be used for both float and double arguments in printf? Are not they different types?

606


What is c programing language?

612