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 / rupesh d. patil

Error


undefined symbol 's' in function main()
Warning

'sum' is assigned a value that is never used in function main

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is pointer initialized in c?

992


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2298


Explain what is the concatenation operator?

1122


What language is windows 1.0 written?

1005


Define the scope of static variables.

1080


Is it better to bitshift a value than to multiply by 2?

1064


Write a program to check palindrome number in c programming?

977


What is string function c?

984


Explain heap and queue.

1028


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1090


When we use void main and int main?

1036


Explain what are bus errors, memory faults, and core dumps?

1237


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1049


Explain the use of keyword 'register' with respect to variables.

986


can we have joblib in a proc ?

2248