main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answer Posted / devendra kumar gupta
S is not define
there variable not declare error is occur
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a code to generate divisors of an integer?
How can I read a binary data file properly?
What is the difference between %d and %i?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What are lookup tables in c?
Explain what is wrong with this program statement? Void = 10;
What are the different types of data structures in c?
What is the use of clrscr?
Why enum is used in c?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is the basic structure of c?
What is the sizeof () operator?
What is the difference between printf and scanf )?
What is a void pointer? When is a void pointer used?