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


Please Help Members By Posting Answers For Below Questions

What is the use of header files?

847


How can I split up a string into whitespace-separated fields?

834


How do you view the path?

913


What is c language and why we use it?

830


What is volatile, register definition in C

907


What is union and structure in c?

891


What are the Advantages of using macro

919


What are the advantages of using new operator as compared to the function malloc ()?

1089


Why is it important to memset a variable, immediately after allocating memory to it ?

1799


What is else if ladder?

817


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?

2303


Can we assign integer value to char in c?

847


Explain how can I convert a number to a string?

884


Explain is it better to bitshift a value than to multiply by 2?

966


When should I declare a function?

841