Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the types of data types and explain?

1091


What is derived datatype in c?

1099


Write a factorial program using C.

1082


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1145


How can you read a directory in a C program?

1148


What does %d do?

1279


What are different types of pointers?

1073


What is the basic structure of c?

1086


What is break statement?

1124


Can you please compare array with pointer?

1089


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1060


Explain about the constants which help in debugging?

1379


Can a program have two main functions?

1131


When we use void main and int main?

1090


Stimulate calculator using Switch-case-default statement for two numbers

2997