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
What is the use of header files?
How can I split up a string into whitespace-separated fields?
How do you view the path?
What is c language and why we use it?
What is volatile, register definition in C
What is union and structure in c?
What are the Advantages of using macro
What are the advantages of using new operator as compared to the function malloc ()?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is else if ladder?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Can we assign integer value to char in c?
Explain how can I convert a number to a string?
Explain is it better to bitshift a value than to multiply by 2?
When should I declare a function?