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
Why c language?
Why is C language being considered a middle level language?
why return type of main is not necessary in linux
Why pointers are used?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What is the purpose of sprintf?
How do you construct an increment statement or decrement statement in C?
Give me the code of in-order recursive and non-recursive.
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is non linear data structure in c?
Are bit fields portable?
What is pass by reference in c?
Explain the difference between ++u and u++?
What is || operator and how does it function in a program?
Differentiate between calloc and malloc.