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
How is pointer initialized in c?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Explain what is the concatenation operator?
What language is windows 1.0 written?
Define the scope of static variables.
Is it better to bitshift a value than to multiply by 2?
Write a program to check palindrome number in c programming?
What is string function c?
Explain heap and queue.
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
When we use void main and int main?
Explain what are bus errors, memory faults, and core dumps?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Explain the use of keyword 'register' with respect to variables.
can we have joblib in a proc ?