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
How can I find out if there are characters available for reading?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What happens if a header file is included twice?
Write a program of advanced Fibonacci series.
Explain void pointer?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is structure in c explain with example?
Why do we write return 0 in c?
What is a const pointer?
What is a scope resolution operator in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
why do some people write if(0 == x) instead of if(x == 0)?
Is calloc better than malloc?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is function prototype?